What happened last night?

So I've had terrible symptoms during my 2ww so I was positive I was prego. I started my period though and it was different from normal. I chalked it up to being because of ttc. Unfortunately it wasn't night I had such a hard a terrible pain in my lower abdomen so I was taken to the hospital. I had a miscarriage. I've been reading posts trying to stay positive but I'm just heart broken.