Filter out invalid emails
Alternatively, you can also add a filter just before your Gmail module to have a basic “Match Pattern” to filter out emails, using the RFC 5322 compliant regex pattern from regex - How can I validate an email address using a regular expression? - Stack Overflow
This can be used in conjunction with the error handling above for a more robust solution.