Spotting, Discharge, Smell

I’m not due for my period until next week but I’ve been spotting for the last two days. I’m regular because i’m on the pill. So my discharge/spotting is a dark brown color and it smells sweet. Do I have an infection? Is my pH levels off? Am I pregnant? What do I do???