I can understand where the OP is coming from. It is natural to fear for the future of your children, wondering what is in store for them.
You can only bring them up to the best of your ability, teaching them as much as you can, and hoping they do well at school, learn enough to show future employers their brains have the capacity to absorb knowledge and remember and apply it. That is all you can do: the rest is up to them.
If your childhood was full of misery, why have children at all? Is it that someone had control over you all your life and you want that same control? Is it that you think you can do a better job than your parents did?
A decade ago there were hundreds of teen pregnancies, and on TV programmes like 'Teen Mum' and the reasons they had for having babies and keeping them was almost always the desire to 'start a family' or 'have something of my own'.
They are not good enough reasons to bring life into the world.
Our desire to have children should be when we have a settled life and enough income to give them a future. Unfortunately, too many women have children first, then look around for a lifestyle they want, and that is the wrong way round. The state of the world and the cost of living means that there has to be two wage packets coming into the home to pay for the necessities of life - bed and board, and parents have to forfeit bringing up their own children to maintain that. It means that many children are being brought up in groups by strangers, and once you have no control over how your children are nurtured, then there are problems. Is the extra income worth giving up your children's care to someone else? When mothers worked part time to supplement income, they were usually at home with the children at least half the day.
Teenagers are more in need of family to come home to after school, yet they are regarded as old enough to be on their own, even look after the younger ones, but it is these teenagers who long for family life and have children hoping they can do that. They cannot, because they have no experience of family life when both parents work. If they didn't when the children are young, they certainly do when they are teenagers, and the whole cycle begins again.