Additional features, settings, or issues not covered by specific Microsoft Teams categories
I found a solution in this thread: https://answers.microsoft.com/en-us/msoffice/forum/all/cannot-sign-into-onedrive-please-check-network/dafb3acf-c93c-4fd7-ac0b-f5cc3ff753c6?page=2.
I deleted registry keys [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]
SavedLegacySettings and [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]DefaultConnectionSettings and restarted.