One helper on that front - that is, avoiding the kinds of hurts and other offenses which demand apology - is a new book. It's about 100 pages. The title is " I'm Sorry: The Art of Apology & The Gift of Forgivenesss." The publisher is Hatherleigh Press. Here you can check it out on Amazon.com.
Essentially, we cross the line from acceptable behavior to unacceptable, at least to some, because we aren't focused on the now. What is this context and what specifically should be thinking, saying, and doing?
If we are emotionally back at our meeting two hours ago, we bring a lot of that into dealing with our co-workers at this moment. At the meeting we had the role of leader. Here we are a peer. Yet, we superimpose that stance of authority. An example? We violate boundaries and give advice. The peer tells us off and more. The more might be badmouthing us to all the rest of the office.
The wonderful thing about preventing interactional mistakes is that we won't be putting out there apologies which may not be accepted.