That's never, ever happened to me.
If you used the Gmail API https://developers.google.com/gmail/api and client that supports OAuth instead of SMTP with username/password you wouldn't really run into this problem.
Yeah it kind of sucks for hobbyists because it's not as simple as sending an SMTP email but that's more to do with the lack of good tooling than something fundamental.