Database locked and some devices cannot register

I have a new problem that some devices are not able to register, although there is no problem with the network. When that happens, I get a bunch of messages on the console :-

From what I read in these forums, there are people who have solved this by removing the db files, /var/lib/asterisk/astdb.sqlite, the corresponding journal file, and restarting asterisk. Unfortunately, that’s not a good solution in a loaded environment, especially since this seems to happen every few days. Has anyone experienced this and know of better solutions? Is it maybe that my disks are slowly failing…?

I forgot to mention, sorry…This has happened both on 11.11 and 11.19.