It would help to abandon platforms that encourage harassment. Or if such platforms actually bothered to fix their design. It doesn't matter if the encouragement is purposeful or by accident.
Have you noticed that those discussions weren't common before people adopted GitHub?
If you used those mailing lists often enough you had a kill file so you could filter out those who were intentionally disruptive.
I think the negative contribution from Github is the "gamification" of development. Stars, in particular, are emblematic of this problem, as it grants a measure of "apparent quality" yet it's not safeguarded in any way at all so now it just measures "apparent popularity."
The mechanisms you have to employ to be popular are almost diametrically opposed to those you have to do to write quality code.
Have you noticed that those discussions weren't common before people adopted GitHub?