Vapour lock. The gas line and pump are getting too warm, probably due to the headers being too close. As long as it's running, the gas flowing keeps it cool, but when you stop, the gas boils and the pump won't work so you run out of gas. The solution is to reroute the line away from the heat, and maybe make a sheet metal shield between the header and the pump and line.