Miscarriage

It's been a rough day. I never thought I'd be in this situation. I'm completely devastated and feel a loss so deep that I can't even put it into words. I have wanted to be a mother for as long as I can remember. I keep thinking what I did wrong, what I could have done differently to prevent this, and I feel like I'm gonna go crazy. Any thoughts or advice? Any help is very much appreciated. TIA