Hormones and panic attacks

I’ve been on the pill for almost a year now and tonight I had a really bad panic attack. I was crying for about 2 hours straight and breathing fast and heavy and am also hot and a little sweaty. I have not been able to go To sleep at all. Do you think it has anything to do with the hormones from birth control or is it something else?