Call to SES SendCustomVerificationEmail is failing for certain emails

For some unknown reason I get an 400 error (with invalid email address message) when using AWS SES service SendCustomVerificationEmail as part of my functions. This problem does not happen when using the AWS CLI.