Does the same error occur when you run the following command (from admin Command Prompt) manually?
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -ValidateMapsConnection
Anyway, see if resetting the Windows Firewall helps. From admin Command Prompt, run:
netsh advfirewall reset export "c:\advfirewallpolicy.wfw" Or try changing the DNS server or a different internet connection if possible.
Services and URLs list is incomplete · Issue #7123 · MicrosoftDocs/microsoft-365-docs · GitHub: https://github.com/MicrosoftDocs/microsoft-365-docs/issues/7123