It feels like this happens too often. If you update to 5.9.4.9 or 5.9.4.10, you will have to wait for the clip database to fully rebuild. On my system with just 5 TB of storage for motion-triggered clips, this takes HOURS, during which nothing can be recorded. This database is such a joke.