Hi Nick Vasilenko,
Welcome to the Microsoft Q&A forum.
I understand how frustrating it can be to run into an error when adding a Gmail account to Outlook for Windows (classic), especially when the setup does not complete successfully.
I see that there is already a Q&A Assist answer above, and the guidance provided there is generally accurate for this scenario. May I ask if you have had a chance to try those steps, particularly the checks related to Gmail sign‑in and re‑adding the account after clearing any existing credentials?
To add a bit more information, Microsoft has also documented a related sign-in/setup scenario for Gmail in classic Outlook (for example, messages like “We weren’t able to set up your Google account with IMAP” or “The browser or app may not be secure”) and notes that updating Outlook to a build that includes the fix can resolve it. Reference: Unable to sign in or add a Gmail account to classic Outlook - Microsoft Support
If you would like an additional official option to narrow this down, you can run the built-in troubleshooters for classic Outlook (profile, authentication, connectivity) using the Windows Get Help app: Classic Outlook troubleshooters - Microsoft Support
Since this is a user-to-user forum, contributors can help validate the correct setup path and point you to the right official guidance, but do not have access to account-side diagnostics. If you have already tried the Q&A Assist steps and the Microsoft workaround above and still get the same error, contacting Microsoft Support would be the next step.
I hope this clarification helps explain what is happening and how the Q&A Assist guidance fits into the overall setup process.