Nextcloud Desktop Sync: Error writing Metadata to the database

Running Nextcloud Server 20.0.8. Started having an issue with Syncing. It says Error writing Metadata to the database. I’ve tried running some maintenance tasks on the database, but it’s still happening.

Logfiles would be great, perhaps there are problems with the database?

Where are they located?