Your database relies on a clean shutdown to write all buffered entries from memory to disk - not only sensor data but error log and status entries. If this doesn’t happen, the database ‘dirty bit’ flag is not reset and the checking routines on restart will show the integrity is compromised and produce the error you have encountered. You not only run the risk of database corruption, but at a lower level, your virtual disk drives risk data loss too.
Often there won’t be any internal corruption, but the risk is there. Is the risk worth it? A strong no!
Hibernation should allow for restart if any events arrive or tasks like automations need to happen. HomeAssistant has an enormous amount of activity going on in the background. Your Windows environment should not be hibernating if hosting HomeAssistant, otherwise the VM will fall increasingly behind, overflow or miss vital events. HomeAssistant is designed to run 24/7/365 and hibernation is not allowing it to.
For your comparison, imagine putting your vehicle automatic transmission into Park while travelling along the freeway at 100mph to slow you down - bolts will tinker out the bottom. Highly dangerous.
Your host shutdown process to hibernate or restart should provide for a clean signal to the VM environment and give it adequate time to close. Often this is a configuration issue, outdated software, or inappropriate platform choices.
Make sure your environment is stable (not crashing and available all the time), has adequate resources allocated (memory, storage, CPU), and the backups are regularly tested for integrity as there is a real risk they will become truly damaged and you will lose your data.
A close examination of your system error log may be advised, both in HomeAssistant as well as Windoze. What is causing the unexpected and abrupt database shutdown? Should your host platform hibernate at all?
Examine your Windows power settings and turn off hibernation. Yes, turning off your monitor when when your system is unattended may be smart, but shutting down your system to save power is inviting disaster in a hosting environment, as you have found out.
[Please remember to use forum </> formatting if posting code or error logs for readability purposes]