Seems like the root cause here is the drive sync app is 32 bit and thus running into the 2GB memory limit. I wonder if it's built with LARGEADDRESSAWARE? Otherwise you could hex edit that into the PE header and get double the usable address space as a possible workaround.
https://support.google.com/drive/forum/AAAAOxCWsTomo298Ko1vU...
> Google Drive Error D41D "Unspecified Error" when trying to upload/sync large amount of files (700GB/1.2 Million files)