Please help!!

So I’ve been on the pill for around 2-3 years and this package was weird. I got to about the second week of pills and I started getting brown/ pink bleeding and it got lighter and heavier throughout the week it lasted about 9 days! Remember I wasn’t even on my sugar pills. I don’t know why I even bled and now it’s a few days later and I have dizzy and nauseated and have a headache. And I’m supposed to get my period now cause I’m on my sugar pills now. Have this ever happened to anyone? What’s going on with me?!