Problem solved.
One detail that is missed in the Hubspot instructions is that you cannot put in your regular password to connect to gmail.
You need an “app password”.
This is how to create an app password: Sign in with app passwords - Google Account Help
It obviously has to do with the more complex nature of gmail, especially if it is part of Google Apps or, what it’s called now, Gmail Suite.