OP, it can be done in your 40s - keep the faith! (Sorry, this will be long).
I'd spent my mid-20s-mid-30s with a husband who turned out to live down to clichés about muslim males. Almost the instant I left him (for many reasons) I wanted to a baby, whilst within the marriage, I'd demurred from the pressure to have one from him, his family, our friends. How glad I was! We would never have agreed on how to raise a child.
I left him the summer I turned 35 and for the next few years was perfectly happy to raise the child on my own. I asked two male friends if they'd be willing to donate swimmers, and they both let me down (they thought, gently), including the platitude "I'm sure you'll meet somebody...".
Well I still hate them for saying that, but the thing is, I did. And, despite my worries about having The Baby Talk before a year without seeing a man-shaped hole in the wall, we stumbled into it in our very first conversation. He'd mentioned he and his ex decided he should have a vasectomy, I blurted out "Oh, that's a damned shame - I'd love you to be the father of my child - you're so handsome and intelligent and tall", and whilst I was mentally dying inside for saying such a thing, he said "I think I can have it reversed". We were inseparable from that moment.
The next few years were good for us, heartbreaking for baby perspective. We had differing levels of help from NHS people, were too old to get IVF, and just didn't get good advice. But finally, when I was 45 and my partner 51, I had our beautiful baby.
We beat all the odds - baby is genetically sound and Downes-free, etc. I got most of my health back and though we'd not as strong or fast as we were in our 20s-30s, we can still do so much compared to some! And our baby is thriving - started walking at 8 months, and is the generally the happiest baby I've even heard of, let alone met.
I suppose it helps that I was raised by grandparents, and my partner's father was blind, so we're used to the concept that parents don't have to be perfect young people with perfect hair.
[Normal] perceptions sucks, and are the cause of most of the miseries of the world. There are so many options for you if you're clever enough to think outside the box and brave enough to face down the judgmentals. We're constantly getting people saying "you put it off for some time" and even if I didn't have the steely gaze and the "actually, we'd been trying since we met, for 7 years" to shut them up, the reality of my gorgeous toddler is enough to get me through anything.
If you want a baby, really want one, you'll find a way, and then you'll make the rest work out for you.
Good luck!