@A-B The most important thing in this world to learn is It's not always about you.
You can accept that you did something wrong without accepting that all the wrong is your fault.
When you accept that you did something wrong, part of taking responsibility for that is analysing it and working out what it was that you did wrong. The next part is trying to do better.
You made a mistake! Congratulations, you're human after all. Now work out what that mistake was and try not to do that again. Me, I have a long and convoluted script running inside my head for 'what not to do in X situation'.
And get help with this analysing stuff. Seriously. Find someone who'll help you pick apart what people were saying and what they were meaning, what you said and what other people assumed you meant, and just how it all came crashing and burning down around your ears. Other people do this shit instinctively, but we have to learn. The good news is that we can.