Verification email won't send through custom provider

I configured Sparkpost as a provider and can successfully send a test email.

When I go to login using passwordless I enter my email, and arrive at the code entry screen, however I never receive the mail, and can see a “Bad Request” error in the Logs screen.

Has anyone encountered this issue? How did you manage to solve it?