Prometheus error

Hello,
Sometimes I got “Database is locked” and “context deadline exceeded” errors and all my alarms were triggered. How can I solve this?

It is PMM 2.9