I think this cognitive fallacy is actually called "labeling". Instead of labeling yourself: "I'm dumb", think "It was dumb when I forgot to turn off my car lights and the battery died".
You are not dumb, lazy, toxic, etc, but occasionally you do or say dumb, lazy, toxic things