The following instructions are only for the Standalone version of OneDrive (i.e. After that I exited OneDrive, and started it again, after which I had no more excessive CPU usage. The files didn’t upload straight away after these commands, but a few minutes later all were uploaded.
If your OneDrive folder is in the default user home location you can get there by issuing cd ~/OneDrive after which you can issue the command above. So using Terminal I reset these permissions for all files back to 755 by issuing the command below within the OneDrive folder: In the example above the two top files were stuck in the upload queue. I found that the files getting stuck had 644 permissions in contrast to the rest, which had 755. While Apple has a specific permission reset instructions article available, my experience it didn’t help. One issue that may be causing files getting stuck in Onedrive for Mac’s upload queue is wrong permissions. As this is a silent crash, you won’t even be aware that your files are not being synced at all uploading files correctly, at least some files appear to get stuck in the upload queue. The main issue I’ve been struggling with is that OneDrive will stop working after some days – it will just crash without any warning soon after the app loads.