Two-factor authentication error

I enabled the two-factor authentication method, I tried both the authentication methods OTP app as well as Email but the email containing the verification code/QR code takes too long to be delivered, and also it is taking too much time to be in the email queue. The notification email account is updated and it is working properly. Could anyone suggest me solution for the same?