Grounding on a mobile or off-grid build always seems to spark more confusion than it should, and I've been through this exact headache on both my narrowboat and the van conversion I did a few years back.
For the EG4 6000XP specifically, the chassis ground on the inverter/charger needs a solid, direct run to your main negative busbar — don't daisy-chain it through other kit. Decent gauge cable too, I used 16mm² on mine and wouldn't go lighter.
For the panel frames, the question is really where your setup lives. On my boat, I bonded all the aluminium frame rails together with a dedicated earth wire and ran that back to the same busbar. Common earth point — everything referenced together. If your panels are on a ground-mounted array rather than a vehicle or vessel, you'll want to look at whether a ground rod is appropriate too, particularly for lightning dissipation.
The bit that catches people out is bonding the negative DC rail versus the chassis/frame ground — they're related but not the same conversation. Keep them clean and intentional rather than letting them accidentally commingle somewhere they shouldn't.
Has anyone had issues with the EG4 specifically throwing ground fault errors when panel frames aren't properly bonded?
Genuinely curious, because I've seen some threads on the US forums about this but nothing much from UK installs. Fogstar and Victron kit tends to be better documented for our setups but the EG4 is creeping in more now.
Would love to hear what others have done, especially anyone running this on a static tiny house or cabin build where NEC/Part P complications come into play.