Does the issue only occur with Edge? Chrome, Firefox or any other browser works fine?
Nevertheless, I found this: https://github.com/MicrosoftEdge/EdgeWebDriver/issues/49
Someone stated: You need to delete the old msedgedriver.exe file and download the version matches your Edge
So if you have that file, maybe that is causing the error?
And someone else stated: Updating the webdriver with the lastest version solved my issue.
ISSUE: "EDGE_IDENTITY: Get Default OS Account failed: Error: Primary Error: kImplicitSignInFailure, Secondary Error: kAccountProviderFetchError"