Is your RV protected by an EMS? (Electrical Management System) It sounds like during the night you had an interruption to shore power. This could have included a surge, or drop in voltage, off then quickly on again, etc. Whatever it was, your inverter wasn't able to handle the changes and didn't reset properly until you turned off power and turned it on again.
I would not be without a Progressive EMS to filter power and only allow it into my RV after being checked. It also has a built in delay when restarting, to prevent trying to restart compressors in A/C or refrigerator units until the pressure has equalized in a timed delay. It's surge protection and low voltage monitoring protects all electronic gear in the RV, like your inverters. Very much worth the money.
Surge Guard makes a similar unit, but compare warranties. SG is one year. Progressive Industries is a Lifetime repair or replace warranty. If you call for technical help, you'll likely end up talking to the CEO. (I did) They'll talk you through tests of your system and suggest repair options. NO CHARGE for time or parts.
Others can argue whether to get the hard wired or portable unit, mine is hard wired into my shore cable. Here's a link to their website:
Progressive Industries RV Surge and Electrical Protection industry lea