Internal Ultrasound, early pregnancy, discharge

Hi, I had an internal ultrasound done on Monday. Wednesday I started having brown discharge when I wiped. This morning when I went to the bathroom I had a ton of black/brown come out. I’m 7 weeks pregnant & freaking out. Anyone have experience with this? How long will it last?