There has been a significant delay in receiving the OTP code email for passwordless login. It took at least 1 hour to 6 hours after I clicked the Submit button.
I have set up SendGrid as custom mail provider based on the following thread, but this does not solve the problem.
The test email after setting up the email provider was sent within a few seconds.