The "Processing changes" loop happens when OneDrive's local database gets corrupted, freezing the sync engine. Resetting the client is the official Microsoft solution to clear this stuck cache without deleting your files.
Press the Windows Key and R together to open the Run dialog, paste %localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and press Enter. If Windows shows an error that it cannot find the file, your system uses the machine-wide installation path, so you should run C:\Program Files\Microsoft OneDrive\onedrive.exe /reset instead.
The taskbar icon will disappear for a minute or two. If it does not reappear automatically to start re-indexing your files, reopen the Run dialog and restart the application by running %localappdata%\Microsoft\OneDrive\onedrive.exe or C:\Program Files\Microsoft OneDrive\onedrive.exe depending on which path worked previously.
Hope this answer brought you some useful information. Should you have any questions, feel free to leave a comment.
Domic V.