#1 rule is to do things less stupid.
There is no reason to fuck up on the completely avoidable stuff.
It just takes self criticism. Ask: is what you are doing stupid?
If you look back, the stuff that you really fucked up on were all completely avoidable and within your control. Stuff you already knew the answer to, but didn’t ask the simple but objective and unbiased hard questions.
Don’t try to solve a problem a complex way if there’s a simple dumb way to solve it.