Maybe try using a box fan to move some air around it? Prop the door open so there's no direct sun.
I'm not sure changing the spark plug would make a difference if it had been running smoothly for several hours?
That's the generator I have, but never had any issues... yet. I read somewhere that the oil level is finicky... too much OR too low can both cause shut downs. Is there an error code displayed on shutdown?
__________________
|