1) Try going to C:\Users\username\AppData\Local\Microsoft (replace username with your folder) and delete the IdentityCache folder.
Cited from https://support.bemopro.com/hc/en-us/articles/8128789480723-How-to-fix-OneDrive-error-Something-went-wrong-1200-#:\~:text=To%20fix%20it%3A&text=Or%20you%20can%20open%20File,IdentityCache%20folder%20and%20delete%20it.
2) Try opening Registry Editor
Delete the registry: HKEY_CURRENT_USER\Software\Microsoft\OneDrive (Right click the OneDrive registry folder and Delete) > Try a log back in with OneDrive
Cited from https://learn.microsoft.com/en-us/answers/questions/933177/onedrive-error-1200.html
If this is helpful please accept answer.