Bleeding on BC

So I am on BC for more than 6 months, never had any symptoms. But now for about a month I am having headaces everyday and I started to bleed out of nowhere, I am still on the pill, one more week till my period. What could this be?