You have to be using Thunderbird 91.8.0 or higher, which was released 5th April 2022. If you weren’t using OAuth2, you have to reconfigure authentication.
https://support.mozilla.org/en-US/kb/automatic-conversion-google-mail-accounts-oauth20
Thanks