8.5 weeks and brown discharge

This is my first pregnancy. And I’m around 8.5 weeks. Having brown discharge since morning. Now it’s night and I still hv spotting every time I go to pee pee. My doctor told me to come in tomorrow for a checkup and I’m so worried. When I found out at 6 weeks I had pink discharge spotting and when I went in for my doc checkup he scanned and said that everything wasn’t fine and he didn’t get a strong heart beat. But I assumed it was too early for a strong beat at 6 weeks. Anyhow doc said let’s scan 3 weeks later and now I’m having this brown discharge. Has anyone had similar experiences? Please help ...