1. Only enable notifications and DMs from mutual follows. People who get into pile ons don't tend to follow their "arch enemies" to do so (because their followers would not like them to follow "the wrong people"). You have full control over who can pester you.
2. Walk away from conversations if your get harrassed, bored or annoyed, but be clear that you are doing it. "This is going nowhere and it's getting late. I'm muting this thread". Again, you have control. If you imagine getting into a heated debate in the pub, this is the equivalent of leaving the table to talk to another group. It gives you the ability to peacefully walk away, and deny someone the opportunity to keep arguing with you against your will.
3. Realise that people don't change their minds during an argument. Always give them room to back down. A cornered animal will always lash out, and we are just animals.
4. Always be clear and civil. Be generous. Don't assume that people are acting out of malice.
5. In sometime is a toxic person who causes pile ons, quote tweets you, intentionally misrepresents you by cherry picking your comments out of context, doxes etc, block the fuck out of them.