ive gone through the same thing. nothing consistently happening, but it happened to me with 3 batches i did.
i always said, "How can it be infected? I did everything right." My problem was with a Baltic Porter, a Pilsen IPA (Pilsner hop-fortified, dryhopped, woodchipped, and fermented with Ale...