One day my mentor told me
Everybody screws up. The trick isn't to avoid it, 'cause you can't. The trick is to own it, fix it if you can, and for heaven's sake, learn something from it. Otherwise, you're just making the same mistake twice, which is dumb.