If it runs for 20-30 minutes and then stops, but after cooling it restarts and runs again, then it's not likely a fuel delivery problem. Sounds more like the control board is getting too hot and causing shutdown due to overheating. May be a bad component/sensor, may be something as simple as not enough ventilation in the genset compartment. It may also be a small crack in the circuit board that opens up a connection when it gets hot due to expansion but closes back after it cools some.
Try running the genset with the compartment door open. If it keeps running after the normal shutdown time, then it's probably a heating problem.