How do i cope with a miscarriage?? HELP

This is my first time being pregnant and having a miscarriage, I just cant understand where i went wrong. I blame myself for it. I should have been more cautious with things. But how can i move past this? Like will a pet make me feel better? Anything? It happen 1 month ago and now its starting to affect me alot more. I just want to be left alone. I go to work everyday and pretend my life is normal even sex with husband is non existent since then. He is really assuring and always by my side but i just want to forget and be strong again

But i feel broken and just a complete shit.