Energy panel going nuts (SolarEdge PV-system)

Running HA 2021.10.7 on HAOS with SolarEdge integration (that has started to behave lately - SolarEdge integration reports errors with SolarEdgeInventoryDataService · Issue #58428 · home-assistant/core · GitHub - maybe this is the culprit?)
Today was another day with crazy data showing up in the Energy panel: first -54009 kWh of production and then +54009 kWh of production. Sigh! Sadly this mess up my long-term statistics making the function practically useless for long-term analysis.


Is the faulty SolarEdge integration to blame for this?
Is there any way to get rid of this data from the statistics?