Pills ussaly damages your egg . Damaging a eggs might causes a unexpected period in sudden. Sometimes it cannot swep all dameged cell by period . Some unhealthy cell might still grow thought its unhealy its ussaly being damaged again so you might face second period soon.
Just stop taking pill for 50-60 days I hope it will be normal again.