Your friend's reaction should help to strengthen your dawning realisation that it is them, not you.
Some people are just toxic and unpleasant. Perhaps your parents learned this behaviour from their family dynamic - but that doesn't excuse it. My DM grew up in an emotionally abusive household, but she was a great mum to me and my Dsis - she learned how not to do it. It looks as if you have learned this too, given how much goodness shines through your posts.
It's going to take time and work to get through this. It hurts to know that the people who are supposed to love you unconditionally don't and can't do that. But you will find your strength, confidence and self esteem in time and make a good life for yourself. 