If the infection are produced by Lactobacilus or Pedioccocus (excessive gas production and very acid beer) they come in the malt. Say, if you grind your malt ( or manipulate your malt) do it in different place an change your clothes before you star wort boiling and handling.