340 engine isn’t getting enough gas, why?

Check your fuel filters....

The one in the tank can get old and disintegrate... The 'sock' on the end of the fuel pick-up tube is known to break down and clog the tube... Then make sure the in line fuel filter is not clogged either.... .
They’re are both brand new, so I don’t think they would be clogged.