I suspect the sinus infection made you more panicky, a nettipot or similar can wash out the sinuses, warm salt water goes in thru one nostril and eventually comes out thru the other, also called sinus irrigation
you could ask a pharmacist whether panic attacks are on his side effects list for the med, another possibility is a panic attack from an allergic reaction to the med