I'm so sorry to hear about your miscarriage, but congratulations on your new pregnancy. It may take a long time to cope better with the loss of your baby, but in time you will. It's going to be difficult, but let yourself go through the emotions that you need to, it's your mind's way of recovery.
Set yourself a particular area that you wouldn't have to see or be in on a regular basis. Let this area (like a spare room in your house) be your space for you time. And focus your thinking on it all. Go through what you need to until you're ready to come out. Start setting a time you can do this but leave it in there until next time.
It doesn't sound easy, but it's something which I found helpful. Despite belief now, it will get easier
You seem to have started here. You could copy and paste and keep going. Or leave it at that