Try deleting the dB files and resync, perhaps delete the Nextcloud Account fist and set it up again after deleting.