I'm sorry for your losses OP 
I could have almost written this myself! Also unexplained infertility. TTC 4yrs before finally falling pregnant at 38, but the baby had patau syndrome so had medical management. I bled for 3mths then passed a product of conception. I didn't need a D&C though.
A year later pregnant again. At 7 weeks I had some spotting, but no pain, so went to work. I MC on the bathroom floor, took 1 day off for the scan, and returned to a very toxic, stressful job the next day.
I left that awful job, found another and had IVF. Got pregnant, had a viability scan at 8 weeks and saw a heartbeat, but sadly, MC's 1 week later at 9 weeks.
I had further IVF but didn't get pregnant again.
I do hope your next pregnancy goes well. Sorry if TMI, but if things don't work out in a 3rd pregnancy, you can ask for the products to be tested for genetics. You can get a small, sterile urine type pot from a pharmacy and use that. They can't always tell the genetics. In my case, it showed that the likely cause of my losses was old eggs- the same thing a consultant told me!
Just know that its not your fault and you aren't alone. Happy to answer any questions you have. If you need time off, then take it. Speak to your GP if you aren't coping with day to day things. No shame in needing time to digest and work through your losses. The miscarriage association have a helpline if you'd like to speak to someone. They also have useful tips on remembering your losses- planting a tree, writing a letter to your baby, lighting a candle etc.
Wishing you all the best going forward x
www.miscarriageassociation.org.uk/