But you have a choice in most of these sorts of things.
For example, you can decide that by simply being human, one deserves to be treated well as a standard, taking that away when someone earns the right to be treated lesser.
You can decide that you earn someone's affection simply by being yourself around the person. That's more work than folks let onto.
You can decide that sure, the past was shitty - but you've worked and persevered nonetheless and earned the things you have. You can choose to see that while those folks were shitty, others around you haven't been. You can choose to not be a victim to the past. People do it all the time.
You can choose to be a bit easier on yourself. This isn't easy and takes a bit of detachment and reminding yourself that you tend to be hard on yourself so that you can set more obtainable goals.
You can choose to get therapy to help you with these things. You've already the self-awareness of much of this, which puts you steps ahead of others.