Spotting or miscarriage?

For the last couple of weeks things have been really off, ive been overly nauseous every morning and even throwing up, certain foods absolutely disgust me, and I cant stand the smells of some things. I’ve thought nothing of it really...but then I’ve started cramping really bad, spotting here and there and it’s brown, now it’s more consistent every day and it’s a lot and it’s like coffee ground like and some times clotty. I’ve never experienced anything like this so I’m kind of freaking. Any help or comments appreciated!