To reset the OneDrive desktop sync app in Windows

  1. Open a Run dialog by pressing Windows key  Press the Windows key  and R.

  2. 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 /reset

  3. Manually restart OneDrive by going to Start  Press the Windows key, 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