And I had a similar problem on my first toyhauler. The generator had 42 hours on it and was surging badly. I did 2 things and one of them fixed it
1) I plugged the trailer into itself. This trailer didn't have an autotransfer switch for the shore/generator power. I had to plug the shore power cable into the generator recepticle manually. This was unplugged when I first started working on the generator.
2) I replaced the gas with good gas.
One of those fixed it and I'm reasonable certain it was the gas.
If you don't know how old the gas is I would suggest getting it out of there and putting fresh gas in.