Could allergy to a specific drug ingredient develop over time?

Yes. Drug allergy is a complex issue, so many drugs r in the market with many active / inactive ingredients, fortunately enough only few people develop drug allergy, if at all in doubt stop the medicine review it with ur doctor to replace it, if it is an absolute necessity to take the drug in question consult an allergist.