💐and a hug, OP.
Fuck sake, don't have surgery because you are unhappy, with yourself or anything else.
Talking therapies help. I've had loads, they really do help.
You need a mantra - make your own, something like 'I am good, I am capable, I am enough.' Use that as often as necessary - hundreds of times a day, if you need to.
Your brain believes what you tell it, so tell it good things.
A key thing said to me by my fabulous, best ever therapist (senior psychological therapist, in case she's reading) was 'You talk about it like it's happening now.' All my pain was happening to me. My collective pain, from my whole life, still wounding me. When she said that, I realised. It's not happening now. It's gone. I don't have to experience it, carry it, save it, endure it... gone. Reading your opening post made me think of that. All that suffering. You didn't and don't deserve it. And it's gone. All we have is this moment, now. How do you want to feel in this moment? Can you let go of the suffering from interpersonal stuff?
I am sorry for your losses. Perhaps put trying for another baby on hold until you are feeling better mentally and emotionally?
I've gone through the whole of my life being 'not liked' and what I've come to understand at the age of 65 is that it really doesn't matter at all. Like yourself. Like your inner child and give her a hug. Notice every happy moment. Enjoy the things that you, specifically, enjoy. Love your dd and enjoy your times with her.
I hope you find a way to be happy and at peace with yourself.