Please help!!!!

In the past, I've never had issues with bleeding outside of my period. About four days ago I started spotting and now it's turned into a flow similar to my period? I'm not supposed to start my period for at least another week and I'm on the pill to regulate it so I'm kind of freaked out (I've been on the pill for years now). I haven't had sex in like five months and the only lifestyle change I can think of was switching my diet to intermittent fasting. Would that mess with my hormones enough to trigger my period early? Should I go to my doctor? Thanks!!!