As long as you’ve really understood the actual nature of the mistakes you made and learnt from them. It’s okay to lose the war, don’t lose the lesson.
Sometimes we’re in a hurry to say sorry. We’re in a hurry to be forgiven. We apologize for the wrong thing. This hurts the other person even more, because they feel that we never understood them. You can’t rush the other person to forgive you. Seek forgiveness and give it time.
Don’t panic. Relax. Give your wounds time to heal. Find your balance.
It'll get tougher and tougher, until it becomes very easy. Keep at it. Don't give up. Try again. You fail only when you stop trying.