Account being “null” apparently marks it as OAuth account (improved here). There’s multiple fixes coming in v3.3 on SSO. Mail has code that can use the Oauth token, so if it still fails for you, it must be either up to Mail not handling to token properly, or the token Mail has expires.