I got rid of the problem by deleting all the registry leftovers from Onedrive.
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} --> Deleted
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} --> Deleted
And the residual folders in %UserProfile%, %LocalAppData% and %ProgramData%
Also ran : %systemroot%\SysWOW64\OneDriveSetup.exe /uninstall (in CMD)
In case someone has the same issue.
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} --> Deleted
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} --> Deleted
And the residual folders in %UserProfile%, %LocalAppData% and %ProgramData%
Also ran : %systemroot%\SysWOW64\OneDriveSetup.exe /uninstall (in CMD)
In case someone has the same issue.