Had almost exactly this on my shepherd's hut build last summer. Turned out my BMS was sending a false high-voltage signal to the Multiplus via the VE.Bus, which made it drop to passthrough thinking the batteries were full when they absolutely weren't.
Few things worth checking:
- What's your battery voltage actually doing when it switches? Pull up VictronConnect or VRM and look at the exact moment it happens — the pattern usually tells you everything
- Check your VE.Bus BMS settings if you're running a lithium setup. The charge disconnect signal can trigger passthrough behaviour unexpectedly
- Grid/shore input voltage — if it dips even briefly below your input voltage range, the Multiplus will drop to passthrough automatically. Had a dodgy hookup cable cause this for ages before I found it
Also worth checking whether it's actually passthrough or whether it's a brief AC ripple issue making it look like passthrough in the logs.
What batteries are you running? If it's Fogstar Drift cells with a Daly BMS, there's a known quirk with the charge parameters that can cause odd handshaking with Victron kit. Took me a good two weekends to sort mine properly.
What does your VRM history show in terms of state of charge at the moment it switches? That'd help narrow it down considerably.