Spotting on the pill

I was wondering if anyone could tell me why I have a ton of spotting off and on while on the pill. It’s very annoying and I didn’t know if there was a way to maybe predict it? I’ve had a constant 2 months of spotting before but it went away. Now it has returned with no apparent cause

***edit: I am very good at taking my pill every night on time