That's really good self awareness. If everyone practiced that, you might not need to take a break.
One tip is that you can turn off a lot of those notifications and hide yourself on the leaderboard. Since you've identified those as toxic elements for you, it might help you stay balanced.
As for getting dragged into ugly exchanges, I struggle with that too. I try to be open to the possibility of being wrong or having misunderstood the other person, but sometimes you just have to cut your losses. There are people who are not engaging in good faith (whether they realize that or not) and you just won't have a productive disagreement with them.