Vaultwarden refusing to connect after a period of time

Hello! I have setup vaultwarden recently and have been encountering an issue. After a period of time, all clients including the web vault refuse to login or connect, saying incorrect password or invalid refresh token. A restart fixes it until the next time, but that can get annoying and I would like to fix the issue itself, not just stick the bandaid of scheduling a container restart. The error in the logs is “POST /identity/connect/token => 400 Bad Request”. I have looked at the timezone, and it is correct, I have made sure that my backup script that follows the advice from the vaultwaren wiki is not causing the issue. Thank you!

Solved by disabling WAL for sqlite.