If you receive the below error when configuring Microsoft 365 Server-side, you have to disable MFA for your admin account in Microsoft 365. You should also ensure that "Require MFA for admins" and "Block legacy authentication" in your Azure AD's Conditional Access - Policies setting are disabled.
How to disable MFA for specific Microsoft 365 admin account
How to disable "Require MFA for admins" and "Block legacy authentication" policies in Azure AD