Verification_code email is always sent from and fails

verification_code for passwordless flow emails are always sent from, even with custom domain and email providers set. that result with errors like this one

details": {
    "email_type": "verification_code",
    "to": "",
    "error": "Error sending email: Message failed: 554 Message rejected: Email address is not verified. The following identities failed the check in region XXX-1: Your APP <>,"

other templates (those which have try button) are send from the correct custom email. how to force this one to work as intended?