Help after miscarriage

I’m 19, in college and I had a miscarriage 2 months ago. I didn’t know I was pregnant, my period is pretty irregular but I started bleeding one day and was in a huge amount of pain so I went to the hospital and found out I was having a miscarriage. Physically I’m ok but mentally I feel so depressed because my parents don’t know, I don’t want to tell a lot of my friends because I don’t want them to spread it around and my boyfriend is also really torn up about it. We don’t talk about it much but it’s just awkward between us now. I cry all the time now and think about if I did something to cause it, and keep blaming myself and idk what to do