There is a few You tube videos about exactly what you were describing . Runs fine for about 20 minutes then dies.
The videos were saying the dipstick on the 4K gen is off. Too much oil , they go into detail about taking a turkey baster and sucking out a few oz's.
Symptoms : Runs fine for 20 minutes shuts down , will not restart . Let it sit for 20-30 minutes fires right back up only to die again after 15-20 minutes run time.
Alot of people commented saying that fixed the dying problems.
Thought what the heck , I tried it , nope still did the same thing.
Wound up replacing the fuel pump and fuel filter.
With no instructions and being in a tight place , took me an hour and a half to do it, well put the module back in tightened it down to realize I didn't fully tighten down the fuel pump retaining screw/bolt and let a wire harness drop underneath the module, so basically did it twice having to remove the module housing plate to get access to the loose screw/bolt and reroute wire harness.
Now that I know how to do it , could do it again in a half hour or less.
I paid right at $100. for the fuel pump, fuel filter and some fuel line.
RV place wanted $250 to replace the pump.
Changed the oil and put at proper level .
Ran it for 5 minutes, turned the A/C on and let run for 30 minutes .
Turned A/C off let run another 5-10 minutes ran perfect.
Have done this a couple times now, so far so good...