Can't upgrade user to admin - unhandled server error

It seems like it’s struggling trying to send the confirmation email. I would definitely look into what’s causing that, but I think a potential workaround in the short term is to add 2FA to your admin account (a good idea anyway) and granting admin would use that rather than an email confirmation.