Get IMAP mail messages Times out

Hello All,
The power shell script to get Emails from Gmail is working fine, but not Via Get IMAP mail messages. Client has opened up the Port 993 from the server. Enabled IMAP, 2-Step Verification and used the newly generated App password and enabled allow Less secure Apps. Increased the timeout too.
Studio Version: 2021.10.4
Uipath.Mail.Activities: 1.12.3

Please Advice.
Thank you