I stopped counting the number of times they mentioned that they considered themselves stupid. There is so much negative and toxic self critic in this post that my feeling is that this is the biggest most fundamental issue that I would look at tackling.
Once you can sit in a room by yourself and be truly happy with your own company go and be open to relationships - but not before - otherwise you're back to square one but only worse because now you have an additional reason that you will use to justify your self hate. Love yourself first. Out of that love maybe you find somebody maybe not. It doesn't matter. Out of that maybe kids can happen - or not. If you ask your partner (or worse your kids) to fix you eventually it will all come back to you. You gotta do that work in the end by yourself. Anything else is cheating.