If you were pinning a certificate fingerprint, this will no longer work.
Sometimes thunderbird gets confused and needs to be restarted!
Connecting via the onion address? Consider changing your configuration to use the non-TLS ports (port 143 for IMAP, port 110 for POP3) without connection security. When using onion addresses, your connection is already secure.