Sonic Analysis has probably nothing to do with the issue.
You are most likely affected by this Library.db size more than doubled in latest version
The automatic solution will arrive when the server version 1.42.8 goes into the public channel.
If you need to solve it now, because your server is unbearably slow or almost doesn’t work at all, there are several methods described in the thread to repair it with a few SQL commands.