I strongly disagree with the assumption that every person you know, has hurt you in some way.
I know several people who have never caused me any harm. Whether I am/was in a relationship with them or not. And I can pretty much guarantee they feel the same way.
I've had relationships that fizzled out so thoroughly that both of us kind of forgot we were in a relationship at all and months later we caught up with eachother and we both liked at eachother and said, well, I guess we're not a couple anymore..... We stayed friends. Nobody got hurt.
Idk. There are ways to behave and act that prevent these kinds of things. Having high quality people in your life helps.
Don't get me wrong, I know I'm incredibly fortunate to be in the position I'm in and not everyone can say the same. But the idea that it is impossible to know someone without being hurt by them, to me, is not the case. However unlikely, it is possible.