Strange. There should be an isolated DC/DC converter between battery and 500V DC BUS.
So it should be earth independent.
Never taken apart any Deye, it is based on the off-grid AIO MPP Solar inverters.
The really stupid only inverters do not have this isolation.
There you can measure 120-240Vac between terminal and PE.
And there is a big current too.