Problem with the filter on the inlet of the fuel pump is a condition known as "vapor lock". The fuel pump sucks on the fuel tank causing a partial vacuum /low pressure area. When hot, lowering the pressure on a line full of fuel can cause it to boil filling the line full of gas bubbles not fuel. The engine is starved and quits.
I had a 1971 Chev. station wagon with a 401 big block with a 4 barrel Quadrajet with the mickey mouse tiny filter at the fuel inlet port on the carb......on the pressure side of the mechanical fuel pump.
I thought I would be creative and install a large inline filter between the fuel tank and the fuel pump. Coming home from vacation one hot July afternoon, towing the boat, car full of family and vacation toys....good load.... motoring down the interstate at the speed limit the engine died and forced me to the side of the road.
30ish minutes of sitting by the side of the road with the hood up and family having a fit due to being hot and wanting to get home, I could get it to start and down the road we went (with the AC off) and after several stops like the first one, finally got home.
Guess how long it took me to remove that "great idea filter addition"????? Never had that problem before under the same load and hot day and never had it again.