"Everything cuts off"
Get more data, what is the battery voltage when it cuts off?
I'm guessing that your inverter/charger is failing, I hope that you find a better answer than that.
Are the batteries getting really hot while charging? I think those need a little space between them?