Hello Emanuel,
Check out this documentation: https://support.microsoft.com/en-us/office/unable-to-add-a-gmail-account-to-classic-outlook-4d9530c5-3f40-4e6d-9b45-4477f160828f
- Ensure that IMAP is enabled on Gmail Settings (https://mail.google.com/mail/u/0/#settings/fwdandpop)
settings > Forwarding and POP/IMAP tab, and select Enable IMAP
- Update Outlook (if it's not updated)
- Log-out & resign again by adding the account
- Create new Outlook Profile
- Clear cache (%localappdata%\Microsoft\Outlook)
- checkout firewall if you set a security rule for IMAP.