This was working fine until I had to reinstall Windows. If it makes any difference, I chose this time to install Thunderbird portable, and it's currently at v115.8.0
I go "add existing account" and enter my details. Thunderbird recognizes that it's Gmail and fills out the required fields
I click "Done", and it takes me to Gmail for authorization
I click "Allow" and now Thunderbird says
The Gmail permissions are fine
So, what am I doing wrongly, and how can I fix it? The user name & password are 100% correct. I tried copying them from a text file and logged in ok at gmail.com, but when I past them to Thunderbird, I get the above.