Invert, always, invert
As a software developer I have been doing this exact thing for the past twelve years: think of all the possible reasons why something can fail.The downside is that I have trained my mind in such a way that it is difficult to turn it off outside of work and it is influencing my personal live negatively.(or maybe I'm just wired to be a doom thinker and that is what makes me a good software engineer)