The newer Onan generators will power down if, for some reason, they are not producing power.
They will also shut down in a few other conditions.
I would recommend first checking the easy stuff. Check your brushes, and your slip rings. If they are dirty (should be very bright and shiny copper) your voltage regulator has to work overtime to produce power across the rings. This may overload the regulator and if this happens too often, it could be fatal to the regulator itself.
I had mine do similar.
These dirty slip rings killed my voltage regulator. This pic is after I partially cleaned them too!! It was a very unfortunate and ($270) error.
Test the easy stuff first!!