Not enough fuel volume.

Install a fuel pressure gauge and see what you have at 4000 rpm.

Be sure and use a pressure isolater so you don't have a pressurized fuel line inside the cockpit.

What kind of fuel pump are you running and what size are your fuel lines?