There is a known bug on APSystems EZ1 Micro-inverters for solar panels, where the 2 separate internal values for energy production will reset to 0 after reaching 540.6 kWh
(The bug has been officially confirmed by APSystems devs and should be fixed in newer 1.9 firmware)
https://github.com/SonnenladenGmbH/APsystems-EZ1-API/issues/34
The issue here is that it causes a big spike in the energy graphs but not in the actual statistics so they cant just be fixed in the database