Learn to understand when you get triggered. And when you see you are triggered, either go silent or walk off but don’t get into the debate at that point.
Knowing the trigger and working on it would save you from the aftermath as when you are triggered, you will more likely do out integrity. And this can start a chain reaction.
When triggered, accept you are triggered and go silent if you know no better way to handle it.