I had that happen with a bc pill as well, very sensitive to most pills though in some form or another. Changing pills made the difference, depending on the hormone combination, others do not affect me this way.
I am so glad you figured out what was causing it and are not having symptoms now. It can be scary otherwise, so I can truly understand your relief.
I hope it continues this way and wishing you all the best!