An extremely overly simplistic model would be something like, let's say you play a sequence 10 times and make a single mistake. You now have a 10% chance on any future run of making that mistake. However if you do, then you probability of making that mistake goes up in the future. Assume that you can reduce that 10% slighly by applying top down (conscious) attention if you play at some reasonable pace. Playing faster means that you can't use any top down feedback to reduce the probability of the incorrect sequence from occurring.
Under stress (e.g. during a competition) you may not be able to dedicate enough attention to keep the incorrect sequences in check, so the mistakes reappear at the worst possible time. This also happens if you get angry because you made a mistake.
The best way to avoid this is to never make a mistake in the first place.