Try to reset your counters for energy and energy returned. Most likely is the energy that was counted before you fixed the wiring on the shelly (when you had readings of negative power the returned energy counter increased). Don’t know which loads you have but seems unlikely that you returned > 100 kWh in a day.
Shelly EM Wi-Fi Energy Meter - SmartHome
Corrupted data in Energy monitor after Shelly 3EM rebooted · Issue #66725 · home-assistant/core · GitHub
Shelly Pro 3EM - three-phase energy meter WiFi Bluetooth Botland - Robotic Shop
Shelly 3EM 3-phases Energy sensor - #140 by newbuilder22 - Configuration - Home Assistant Community
Calculating actual return to grid - Configuration - Home Assistant Community
Shelly 3EM 3-phases Energy sensor - #77 by markpurcell - Configuration - Home Assistant Community
Shelly EM3 and Home Assistant
Shelly 3EM and Home Assistant
Shelly 3EM 3-phases Energy sensor - Configuration - Home Assistant Community
Shelly support group (English Version), So, 3EM arrived yesterday, and with device and user guide in front of me, I'm still unsure how to connect
Shelly 3EM 3-phase Net Metering templates for Import, export and consumption - #158 by doodlez - Configuration - Home Assistant Community
Shelly 3EM