Hello!
Have you checked what version of Microsoft Edge you’re using under Settings > About Microsoft Edge? Sometimes this message appears when the update didn’t finish or Windows isn’t fully updated. Try running Windows Update first, restart your device, then open Edge and let it check for updates again.
If it still blocks logins, download the latest version directly from Microsoft’s official Edge page to reinstall it cleanly.