
Although you have said you have tried all the tricks in the link above but with no success, I need to confirm, have you tried Alvaro Velasco (alvaro) steps in that link?
Delete the OneAuth and Identity Cache folders in the below location.
%localappdata%/Microsoft/OneAuth
%localappdata%/Microsoft/IdentityCache
Additional of delete OneDrive keys from Registry, and uninstall OneDrive. Before you reinstall it, look again at registry and delete any OneDrive entries you can find at HKLM and HKCU at SOFTWARE, make sure there is no OneDrive registry keys.
If not, I suggest you try to have a look. (Serious problems might occur if you modify the registry incorrectly. Before you modify it, please remember to back up the registry for restoration in case problems occur.)
If yes and you still can not log into OneDrive, please go to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity\Identities
, under the Identities registry entry, check whether there is the identity of the account you log into OneDrive, then remove it.
And then remove the credentials of OneDrive as MohammedAltamashKhan-3285 suggested above
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.