The problem is that your energy sensor is reporting 0 instead of unavailable when it is unavailable. i.e. The states act like this:
Total → 0 → Total = add the entire total to the energy dashboard
Total → unavailable → Total = no change.
If you are using template sensors this can be fixed with an availability template.
If you are using some integration for your energy sensors you can report this issue to the developer of the integration. If you have no luck there you can filter your sensors through a template sensor.
Please show your sensor configuration rather than the customizations of your sensors.
Also please do not post pictures of text. Post the actual text and format it correctly for the forum. That goes a long way in helping us help you, as we can then copy/paste/edit the configuration to guide you to a solution.