It seems OAuth2 client credentials grant flow that enables access without a user is not supported.
ImapResponse: AUTHENTICATE failed.
Message: AUTHENTICATE failed (NO).
Status: ProtocolError: The response received from the server was complete but indicated a protocol-level error.