Same here, I agree and relate to every bit you said. I always thought it'd be a bad idea for me to have kids, my childhood/early-adulthood was absolute chaos, abuse, serious depression, homelessness, the works. Met "the one", we wanted kids, a decade later I can see it's the best thing that ever happened to me. My brain can still be a very scary place, but they give me purpose/direction/motivation to do better and make sure they don't grow up how I did.
I do now have an illness that's "almost definitely terminal" (but haven't been given a definitive timeframe yet), and old-me would've just ended it to get it over with without a second thought, but instead now I'm driven to make sure my wife/kids have the best possible life set up before I go.