The way I see it, there's nothing wrong with you, but there is something wrong with the way you see yourself - and that's not your fault, it's the fault of the way you were brought up. Because the way we see ourselves comes very much from the way we're treated by those around us in our earliest years. They don't call them the "formative" years for nothing.
So if, one way or another, you learned as a child that you didn't have any intrinsic worth, or that your worth lay only in what you could do for others, this (possibly unconscious) message would go very deep in you and you would carry it with you into adulthood.
Then you would be drawn to people who would be likely to see you and treat you in a similar way - because it's what's familiar so it feels "safe", even thought it's the opposite of safe. So then your new experiences compound the original damage to your sense of self and confirm the pre-existing patterns, which in turn lead you to rinse and repeat, and it's the classic vicious circle.
So your job is to address this faulty image of yourself that you were given as a child, and to refuse to believe it, no matter how much the evidence seems to back it up. Look for all the evidence of the opposite. Believe instead that you are a good person, a decent person, someone loving and caring and hardworking, with a lot to offer the right person - that right person being someone who will love and care for you equally.
It takes work, but instead of using your time, energy and money trying to better the life of this miserable man, use it to love and care for yourself and turn these patterns around.
No, counselling isn't always effective - there are some truly shit counsellors and therapists around, unfortunately - but there are also some really brilliant ones. Shop around, find someone who you feel really "gets" you, someone who will help you get to the heart of whatever dynamics they were that conspired to make you feel so worthless, and challenge them. You've had a long time to learn that you weren't worth much and didn't deserve love, now it's time to re-learn everything and see that you are worth a lot and you do deserve real love.
All of us replying to you on this thread can see that, I'm sure - and the change will come when you too can see it and believe it. I hope you can.
Btw, am speaking from experience here - truly dire relationship history in the past, but I've been with my DH for over a decade now, and he loves and cares about me as much I love and care about him. It's extraordinary when you've been used to being treated like crap when you finally get together with someone who's actually the same as you, one of the good guys. It seemed impossible that I would ever be in this position, and my 40th birthday came and went before I found him, but it happened. Don't give up on yourself, who else is going to fight your corner if you don't?!