I've been dealing with this problem, trying to remove the notes one by one immediately prior to the last Sync Fail, to no avail.
I have 2539 notes in the database, and no problem syncing from my Window 7, iOS and Android 10 devices.
However on my Windows 10 PC, I get to sync 2018 notes, before I get this sync fail ( see the log).
It does not make sense that it would only fail on one device if the database is corrupted?
I tried to remove the .exb file and re-syncronize, w/o any luck.
14:50:22 [INFO ]   82% Retrieving