Brown spotting 8 weeks!

Ladies I’m freaking out!! I felt discharge walking at the mall earlier, and when we got home, I went to pee & had brown discharge/spotting in my underwear. I’m 8 weeks pregnant and terrified of losing this baby. :( what does this mean? Also feeling a pinching feeling really low in my right side behind my pelvis..