To fix this issue you will need to make a change in one of OneDrives registry locations, with this simple change OneDrive will once again install correctly and open normally on your PC. As a precaution before starting, make sure you create a system restore point, so you have a safe place to revert to if you make any mistakes.
If you’ve never created a restore point before do the following. Open the start menu, type Restore, then select Create a Restore Point when the option appears on the list. From the new window that appears, click Create in the bottom right section of the screen, then follow the instructions given by Windows. Once you have a restore point created, continue with the instructions below.
To begin, open the Registry Editor by pressing the Windows Key + R to open the Run tool, then type regedit into the text box and press Enter. When you have the Registry Editor open, navigate to the following address. (or copy and paste it into the address bar)
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive
When you are at the correct location double-click the DisableFileSyncNGSC entry in the central pane and change the Value Data from 1 to 0, then click Ok. After making the change, close the registry editor and install or open OneDrive.
It should now open normally and allow you to sign into your account. If it doesn’t, Uninstall OneDrive, Restart your computer then repeat the process. After this try to install OneDrive on your computer again.