Odd behavior lockups and missing sunrise/sunset events

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:

Lots of us with hubs that lockup consistently just reboot on a schedule to prevent it.