When your hub locks up/crashes it can sometimes cause the database to get corrupted. It is wise to download a backup of your hub before changes are made.
https://docs.hubitat.com/index.php?title=Soft_Reset
Also, look into this:
I know some people use RM to reboot their hub nightly but this requires you to have hub security disabled. The only option I've seen with security disabled it to run something on an rpi. I built a small app that does it all self-contained to the hub (I really didn't want to setup an rpi just to reboot my hub!)
You can find the app here GitHub - dcmeglio/hubitat-rebooter it's pretty straight forward, specify the username/password to use to login to your hub and the time of day to reboot.
Hopefu…
Lots of us with hubs that lockup consistently just reboot on a schedule to prevent it.