A description and electrical specs of the "one AC machinery" may help.
Your fuel control valve may be sticking.
With many electronic governors send an electrical signal to the fuel control valve. The greater the load, the greater the voltage or current of the control signal. When the load decreases, the control signal is reduced and a spring reduces or closes the fuel control valve.
If the valve is sticking due to dirt or dry fuel, the generator will go over-speed when the load is reduced.
As the signal is reduced more, the closing force of the return spring becomes greater and the valve may abruptly drop to a lower setting, bringing the generator back to intended speed, only to stick in that position, go over-speed, and drop again.
Try adding a fuel additive that contains a lubricant.
Not all additives contain lubricant, some additives only suspend water, and/or raise the cetane rating of the fuel.
If your fuel is dirty or there are a lot of hours on the set, the problem may be sludge and/or dirt build-up in the valve.
I will leave it to others to describe methods for cleaning a dirty fuel control valve.
--------------------
Ohm's law
Not just a good idea;
It's the LAW!