Been through this exact nightmare with my backup setup on the narrowboat last winter. Nine times out of ten when a genny cuts mid-cycle it's one of three culprits:
- Overloaded AVR struggling with a sudden load spike (inverter chargers are terrible for this — Victron Multiplus, I'm looking at you)
- Fuel starvation — dirty carb jet or a partially blocked tank vent creating a vacuum lock
- Thermal cutout triggering due to poor ventilation, especially in a confined space
Before you condemn the AVR, check whether the voltage is collapsing before the shutdown or after. If it's dropping then cutting, that's AVR territory. If it just dies cleanly with stable voltage right up to the moment of death, bet your money on fuel or thermals.
What generator are you running? Brand and kVA matters here. Cheap Chinese units (no shame, I've got one) have notoriously flimsy AVR boards that can't handle the power factor demands of battery chargers. The AVR replacement itself is usually £15-40 and a Saturday afternoon job if you're handy with a multimeter.
Also — and people ignore this constantly — check your earthing. A dodgy earth can cause all manner of mysterious gremlins that look electrical but aren't really AVR-related at all.
What's the exact failure mode? Does it trip a breaker, just stall, or kill itself via the low-oil cutout? Those details will narrow it down massively. Drop the model number and I reckon we can sort this properly.