Here are a few options to help fix this problem.
Refer to https://www.windowscentral.com/how-quickly-pause-and-resume-onedrive-file-syncing-windows-10
Refer to https://support.microsoft.com/en-us/office/reset-onedrive-34701e00-bf7b-42db-b960-84905399050c
Refer to https://www.intowindows.com/how-to-sign-out-of-onedrive-in-windows-10/