A small air leak in the main fuel line to the generator will cause this exact issue. Had the same issue on my 2000 Onan 5500. Would quit after a few hours on the road in 100 degree temps. Cool off a little and it would run again.
A good test is to disconnect the fuel line at the generator, attach a shorter piece of fuel line and drop it in a gas can and see if it will run a couple of hours in the same temps. If it quits it's most likely the fuel pump. If not, look at replacing the line all the way back to the main tank.
Thought my issue was vapor lock as well, but it ran for several hours from the gas can. Replaced the line and had no other issues.