Discharge after sex vs miscarriage

I have a lot of reddish brown discharge and I had some roughish sex( a little painful) day before yesterday. Today the discharge had two rice grain size clots. I’ve been stressing about miscarrying since they didn’t find a heartbeat (is still early for me). I just want to know if this has happened to anyone else.