This is not limited to GitHub. The whole point of putting an email into each commit is to make it easy to contact the author.
So if you make a git repo public, no matter whether you use a managed git service or self-host, anyone who can access it will be able to read all those email adresses in the commits.
This seems like a nothing-burger. If you put your email address publicly on the Internet, you'll get spam. Git inherently doesn't let you remove your email address from past commits without rewriting history and all the problems that causes. And I have no idea why this suggests a bunch of GitHub alternatives that all have the same "problem".
So if you make a git repo public, no matter whether you use a managed git service or self-host, anyone who can access it will be able to read all those email adresses in the commits.