Re: Mail keeps crashing

From the page on Two-factor authentication for Apple ID (emphasis mine):
‘With two-factor authentication, you need an app-specific password to sign in to your account using third-party apps or services such as email, contacts, or calendar apps not provided by Apple.’
This is similar to the way that other service providers like Google and Fastmail work when you enable their two-factor authentication.