In my experience the problem you describe is most often low voltage in the house battery that powers the generator.
You can start the generator on as little as 9 volts in the house battery, but that would mean unsafe low voltage on the output side also so the system then shuts off the generator as a safety precaution.
Measure the voltage in the house battery, I'll bet you find it's low.