Thanks for your query.
Yes you are right. Probably that swelling occurred due to allergic response
to that drug.
Therefore better to avoid this drug and probably you have sulphur allergy
You may take cetrizine
10 mg once daily for the swelling to reduce.
You may consult your allergist to take his opinion regarding your problem to undergo some skin testing or serum analysis to conclusively prove your sulphur allergy.