There are many things that can cause hydrogen sulfide contamination; all are preventable:

1. Too much sulfite, usually the result of grapes being dusted with too much sulfur during the growing season.
2. Lack of proper nutrients (nitrogen, yeast hulls) during fermentation.
3. Yeast combining with various forms of sulfur.
4. Bacterial contamination due to poor sanitation techniques.
That being said, here are the things you can do to prevent H2S contamination:
5. Add proper amounts of sulfites to wine.
6. If making wine from scratch (not from a kit), add a proper amount of yeast nutrient prior to pitching yeast.
7. Use proper yeast for the wine you’re making, and make sure it has not passed the expiration date or gotten too hot in storage.
8. Maintain sanitary conditions for your equipment and must (especially prior to pitching yeast).

Posted in: Wine