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.
Reset Onedrive
Open a Run dialog by pressing Windows key...