Unable to sign in with Microsoft account due to Avast real site on Windows

When I turn on Avast real site protection, I cannot access login.live.com due to 2FA redirect. Or I can’t access the microsoft User Login page either.

I reinstalled windows because I couldn’t solve it in the first place. I solved it by chance on my second computer.

Microsoft does 2FA or DNS forwarding for security reasons.
Because the page is blocked by Real Site, we cannot open a microsoft account via windows or browser. I forwarded the issue to avast company.

For your information,

Hi, you can set exclusions for Real Site, see: https://support.avast.com/en-ww/article/188/