How do you respond? Do you try to justify your actions and prove that you are not wrong and are doing your best? Does that work? Even if you really did nothing wrong, do people believe you and make your life easy? Not usually.
If you'd like to vacuum up all the bad feelings and start again, do this. First acknowledge the other person's point of view. Say ' You're right, I'm wrong ' three times. Then ask ' What can I do to make up for the damage I've done?'
Check your energy matches the words. Sarcastic or angry energy won't work. The magic is in the energy of allowance and vulnerability.
When you are willing to give up your points of view about being right, then you are free to create new possibilities.