What is the Onedrive Error you`re getting? If any error code is being displayed let us know. Menawhile you can try some basic steps for trouble shooting Onedrive
Unlink OneDrive and run OneDrive setup again
You won't lose files or data by disabling, uninstalling or unlinking OneDrive on your computer. You can always access your files by signing in to your OneDrive account online.
Select the white or blue OneDrive cloud icon in the notification area, at the far right of the taskbar.
Select More > Settings.
Click Unlink this PC.
Follow the steps in the Welcome to OneDrive wizard to set up OneDrive.
Open a Run dialog by pressing Windows key
Type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and press OK. A Command window may appear briefly.
Manually launch OneDrive by going to Start
, type OneDrive in the search box, and then click on the OneDrive desktop app.
Repairing or reinstalling Office can sometimes fix sync conflicts between Office and OneDrive