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.... .
had this happen to me in an aspen R/T, the sock would collapse and starve for fuel...shut the car off for a few minutes, restart then it would work fine for a bit till it happened again....took a while to track that down...good call kuda