Sounds like an intermittent problem, something loose, a poor connection; almost always a pain to diagnose. The "loose wires" may not have been an issue, it's often difficult to tell...
A simple course of action is to continue checking for loose connections and broken and damaged wires. Loose wires which move with vibration can fray strands causing an intermittent connection.
Check CAREFULLY for a loose in line fuse providing power to your control box. Bill Allen had a similar 1980's ONAN problem this past fall on our trip from NJ to Fla...I bypassed every sensor, checked relays, wires, connections, etc, etc...all seemed fine.....but did not know there was such a fuse...I don't think my 1970's 12KW ONAN had such a fuse....I don't know if your newer 20 KW has such a fuse.....A pro subsequently advised BIll that a weak fuse holder spring when warm/hot allows a poor fuse connection!!!! That was it!!!!!