It looks like you are having some problems with the credentials/ security options. Make sure that you provide the correct credentials for the activity. Also make sure all the other security requirements are met if you have any special security options set.
Welcome to the forum.
You need to use app password for gmail rather than normal password.
I am attaching the link from this link you can generate app password. Just generate an app password and use it in Get IMAP Mail in password field.
Just check if there is any firewall blocking to read the mail from the code.
Please mark it as solution if it will work for you.
unfortunately no, so I used another solution with GetOutlookmail activity. But, if someone found a solution to GetIMAPmail activity, I’m curious to know it.