The reason people get endophthalmitis is rarely due to a contaminated batch, but it certainly happens. But frankly it’s unsustainable to have all patients on branded drug, it would be too costly for patients and payers. Not to mention it is slightly unethical in the US due to drug rebates incentivizing branded drug use.
Endophthalmitis is bad, but we can treat it if caught promptly. Patient education, informed consent, good hygiene practices, and easy access to their ophthalmologist can make a tremendous difference.
Source: I do these injections for a living.