I have never seen such server error:
S: 41f6f64e087e4bd3 BAD User is authenticated but not connected.
It's very strange. How a client can be not-connected and receive not-connected error at the same time?
Authentication was successful:
S: 97494663a77d4dc3 OK AUTHENTICATE completed.
and even subsequent IMAP command was performed correctly:
C: 22f14970c6ca4195 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN UIDPLUS
CHILDREN IDLE NAMESPACE LITERAL+
S: 22f14970c6ca4195 OK CAPABILITY completed.
Are you able to log in via web UI?
It seems you should contact server administrator for details.