Outlook Oauth2 IMAP integration for outlook account having MFA enabled

I am having suitecrm 7.14

I want to integrate suitecrm with outlook account via Oauth2 having MFA enabled

Without MFA I am able to authenticate IMAP and get all the emails under Emails folder in CRM

But for account having MFA enabled, I am not able to select monitored folder

When I click on monitored folder, getting below error message

Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: “IMAP open error: Can not authenticate to IMAP server: A0001 NO AUTHENTICATE failed.” Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: “IMAP open error | debug data” Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: “ImapHandler:open: {outlook.office365.com:993/service=imap/ssl/tls/validate-cert/secure}INBOX” Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: “ImapHandler:open: bkohler” Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: “ImapHandler:open: password is empty: no” Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: “ImapHandler:open: 512” Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: "IMAP open error | debug data end " Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] ImapHandler trying to use a non valid resource stream. Tue Jul 30 19:50:14 2024 [2880][8a9ba223-c829-d499-09a2-65bd8d96d3cf][FATAL] An Imap error detected: “IMAP open error:Can not authenticate to IMAP server: A0001 NO AUTHENTICATE failed.”

When we do not have MFA enabled. I am able to retrieve Mailbox folders

But when MFA enabled I am getting 512 error .IMAP open error:Can not authenticate to IMAP server: A0001 NO AUTHENTICATE failed

SMTP error 512 occurs when the recipient’s email domain is not resolvable via a valid DNS record .

I am getting error during IMAP not SMTP.Are you referring to same

Also how will we confirm we have this error?will we find any logs anywhere?