Hi, @ImHopeful2023. I'm so sorry for your loss.
Do you mean that karotyping revealed a genetic/chromosomal issue that caused your miscarriage? It's impossible for anyone to say with certainty that your miscarriage was caused by the overall quality of your eggs. What they can say, is that in general egg quality declines with age, but it's entirely possible for some genetic issues to be isolated to one 'bad' egg, rather than all of your remaining eggs, if that makes sense. And that can sadly happen regardless of age. It just tends to happen more often at our age.
I had a tough run of it while trying to conceive DD (2.5 years now). I was 38. We tried for a year and had three miscarriages and an ectopic in that time. While the ectopic was a fluke, I'm told, the recurrent miscarriages were likely, but not proven to be, age-related. I was never able to complete any karotyping due to a lack of fetal tissue. But, we kept going and we got there. I was 39 when DD was born.
I'm now 36 weeks pregnant with DS at 41 (i'll be 42 in early Feb). This time we tried for 8 months and I didn't fall pregnant as often. We suffered one loss that was actually anembryonic, before DS stuck.
So, it's NOT impossible, dependent upon any specific genetic issues that may have been identified for you and/or your partner. Don't give up hope.
Good luck, OP. And give yourself time to heal. 💐