Disable all the Mail accounts in System Preferences > Internet Accounts, make sure Mail launches with no accounts active. Then re-enable them one at a time. It'll either start working, or you'll identify which account is causing the problem and deal with that separately.