Hi,
The issue is most probably caused by Netlify API – we have reported it to them, but it seems that they do not know what happens in such case.
You can try to switch to “Manual deploy” option – then you will get folder with your website files which you can zip and upload to Netlify manually. It can also solve your issue with this error during next sync.