You can disable this check for an on-premise Exchange Server. Go to the registry key HKEY_CURRENT_USER\Software \Microsoft\Office\16.0\Outlook\AutoDiscover and create a new DWORD parameter named ExcludeExplicitO365Endpoint and value 1. Restart Outlook.e
You can make changes to the registry with the following command:
reg add HKEY_CURRENT_USER\Software\Microsoft\Office\x.0\Outlook\AutoDiscover /t REG_DWORD /v ExcludeExplicitO365Endpoint /d 1
Or, using the PowerShell cmdlet Set-ItemProperty:
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" -Name 'ExcludeExplicitO365Endpoint' -Value 1 -Type DWORD –Force
Are you currently using an outlook.com account? Here is another document you can refer to: https://learn.microsoft.com/en-us/exchange/troubleshoot/administration/modern-authentication-configuration