Weird situation, 5 weeks, possible ectopic

L

I am 5 weeks but only 16 dpo, I ovulated late this cycle. This is kind of a weird situation, my husband pulled out late 5 dpo and that was the only time we had sex during my fertile window. I got a faint positive at 12 dpo, that started to get darker and then faded back to light lines. I have light pink spotting, but no actually bleeding (this is more of a pink discharge a couple times). I have a slight pain below my right rib and have for a couple of days. What do you think? Could this be ectopic? A miscarriage? What’s happening.