I need some positivity

So on the 26th of July I had my first ultrasound I was around 8 weeks but ended with bad news I had a blighted ovum. On the 30th July I went in for a D&C because my body wasn't letting it go now I'm recovering and I'm in pain with bleeding the usual after something like that but now I'm just feeling defeated I dont want to try for our rainbow anymore I'm too scared of it happening again I keep asking why God let this happen because I was so ready to be a mum 😭