Energy Dashboard - missing data in statictis

My data in the energy dashboard is corrupted. However, all sensor data is still present in the states.

Does anyone know a way to restore the statistical data for the energy dashboard or rebuild it
based on the states data? Home Assistant does not do this automatically.

Home Assistant Core 2024.10.4
Frontend 20241002.4
Database is MySQL