To reset the OneDrive desktop sync app in Windows
Open a Run dialog by pressing Windows key and R.
Copy this and paste it into the dialog window, then press OK.
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
If you see a "Windows cannot find..." message, copy and paste this instead, then press OK.
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset
If you see a "Windows cannot find..." message, copy and paste this instead, then press OK.
C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /resetManually restart OneDrive by going to Start , type OneDrive in the search box, and then click on the OneDrive desktop app.
Source: https://support.microsoft.com/en-us/office/reset-onedrive-34701e00-bf7b-42db-b960-84905399050c