I hope you find it in you to forgive yourself for not having known how to cope with the world better. For having to rely on self-destructive ways to either suppress or release your pain.
You have learned from those trying times and the only way to stop sabotaging your own life is to let go of all the parts you think deserved the misery you used to put yourself in.
Don't punish yourself forever for the way you protected yourself the only way you knew how.
You were the person you had to be, and after all, that person was the one that got you through till this day. I hope you let that person grow into someone you'd actually learn to love and like. You deserve the love you deprived yourself of.