Passwordless exchange token failing

Hi. I am trying to exchange a passwordless email code with an access token but I am receiving a 500 error.

	"error": "access_denied",
	"error_description": "Request failed with status code 500"

Looking at the logs, it says the error type is fepotpft, which means Failed exchange of Passwordless OTP for Access Token.

The error message really doesn’t help. I wonder if there is something I am doing wrong.