A friend of mine has a Champion 4000 watt generator with less than 20 hrs on it, that was stalling all the time. It would run for a couple of minutes, then shut down. It would re-start OK though, run awhile, then stall again.
I had a look at it, decided it was a fuel issue. I took off the float bowl and it had what looked like orange Jello in the bottom of the bowl. Cleaned that out and sprayed some aerosol Seafoam on the needle and seat and into the carb throttle body. I put a third of a can of Seafoam in the gas tank and started it up. Gave a few more shots of Seafoam into the carb as it was running, just enough to not stall the engine. Genny ran fine after that. Tested under load, no more stalling problem. Any carb cleaner would've likely worked in this situation, but I have had good luck with Seafoam.