A short time ago I downsized my motorhome and the shorter one had an Onan 4K generator in it. Finally got around to running the generator but it would only run 5-10 seconds then stop with a code of 14 (high frequency). Went online and a majority of the hits pointed to carb problems as the engine was “hunting”.
Another “fix” was to drain about a cup of oil out of the crankcase. Being the eternal skeptic, I muttered under my breath “riiiiiiight”. I replaced the “usual suspects” (air & fuel filter) but that did not solve the problem. Thought about the oil fix and decided I had nothing to lose and it didn’t cost a thing. I drained about a cup of oil and fired up the generator. It ran continuously;let it run for app. a half hour with various loads and it never skipped a beat.
Did more research and found out this model generator has a low oil-level sensor. It seems if the oil level is high (not necessarily over-full), it causes the Onan “brain” to do some odd things.
This fix worked for me, you might give it a try. As I mentioned above, it’s free and I had nothing to lose.