In both my mmc's I have had both intrauterine and more specifically subchornionic haematomas. As far as I understand and have read they are often present at the same time as a miscarriage, but it is difficult to tell if they caused the mc.
For me, after two mc's they have found the reason I miscarried and it seems to be a clotting disorder that I have (positive for three factors associated with increased blood clotting). There seems to also be some link between haematomas and clotting problems (though a lot of pregnancies have haematomas and have no problems, and a lot of haematomas have nothing to do with thrombophilia)
Take care of yourself, both body and mind, take your time getting better. I found looking at a lot of research helped me and I found it comforting to find out how common it was and how many women went on to have healthy babies. It also helped me take charge of the situation and push for investigations (some privately) which meant that after 2 mc I have a cause and potentially a treatment if/when I get pg again.
All the best for your recovery and I am sorry you find yourself here.