Noun (thing)
Defense mechanism
behavior of people protecting themselves, often automatically or unconsciously as a result of anxiety
Last time I dealt with this customer, I was so afraid I used a defence mechanism; I blamed someone else to get away from them quickly.