The connection configuration is as follows

The error message is as follows
The connection test failed
Testing IMAP for a user email address removed for privacy reasons on host outlook.office365.com:995:SSL.
The IMAP test failed.
An attempt is being made to resolve the host name outlook.office365.com in DNS.
The host name was successfully resolved.
Testing TCP port 995 on host outlook.office365.com to ensure that it is listening/opening.
The port was opened successfully.
The SSL certificate is being tested to ensure that it is valid.
The certificate meets all validation requirements.
Testing the IMAP service.
An error occurred while testing the IMAP service
Protocol Log: C: 1 CAPABILITY S: +OK The Microsoft Exchange POP3 service is ready. [UwBZAEEAUABSADAAMQBDAEEAMAAwADAAOAAuAGEAdQBzAHAAcgBkADAAMQAuAAcgBvBvQALgBvAHuAdABsAG8AbwBrAC4AYwBvAG0A] Exception Details: Mail: IMAP Server Response Error Status "+OK The Microsoft Exchange POP3 service is ready. [UwBZAEEAUABSADAAMQBDAEEAMAAwADAAOAAuAGEAdQBzAHAAcgBkADAAMQAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]”。 Type: Microsoft.M365.RCA.Services.Protocols.Imap.ImapServerErrorException Stack Trace: In Microsoft.M365.RCA.Services.Protocols.Imap.ImapCommand'1.CheckForOk (IList'1 response) in Microsoft.M365.RCA.Services.Protocols.Imap.CapabilityCommand.ProcessResponse (IList'1 response) is < microsoft.M365.RCA.Services.Protocols.ProtocolClient. SendCommandAsync>d__17'1.MoveNext() --- Throw exception at the end of the stack trace at the end of the --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) is < at Microsoft.M365.RCA.Services.Protocols.Imap.ImapProtocolClient. Capability>d__3.MoveNext() --- Throw exception at the end of the stack trace at the previous location --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter. HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.M365.RCA.ConnectivityTests.ImapPop.BaseProtocolTest.<PerformTestInternalAsync>d__12.MoveNext()

Can someone help me analyze the reason for the error?