I also have been having problems in getting a code via email. Oddly enough, I had set up 2FA using the Google Authenticator, but it chose to ignore that and fall back on sending a code via email. (Allegedly, because I’ve yet to receive such a code. There’s nothing in my spamtrap nor trash.)
Ironically, I use 2FA via the aforementioned Authenticator to access this resource.