Am I having a miscarriage??

Katie
I am 6w2d. A week ago I fainted at work, I have had really bad morning sickness, and cramping. I noticed redish brown blood when I wiped yesterday. After a er trip. They said my levels were great. The babies heart beat is 119bpm. My cervix is closed. But I am still in pain and still have brownish spoting. What is going on?