I'm using Obsidian desktop on Macbook Air M1 (2020). The sync always fails after an arbitrary number of documents have synced (usually around 30-35 documents). Most of which are books and not Articles.
Update: It fails after exactly 37 documents. I think it has something to do with the targetBookIds variable in the code since it only contains 37 documents. Apologies I do not have a background in web-app coding so cannot be of further help.