Attempting a task, and then realising simultaneously that (a) it was a bad idea and would have had a bad consequence, but also (b) I mucked it up in such a way that the bad consequence did not in fact occur.
I can never work out what I should be calling myself an idiot for, in that situation!
Whereas in your case, it's sufficiently complicated that you can't be SURE the errors are coincidence, it's possible that "subconscious sabotage" was an exaggeration, but maybe you tried to avoid the bad consequences, and that led to messing up the implementation.
I'm inclined to count fortuitous outcomes positively :)