I believe the answer is: Regression
Regression refers to the process of slipping to our earlier stage of development when facing difficult situation rather than making an adaptation to face it.
This coping mechanism would make the person who do it act in non-suitable manner considering their age. Other example would be college students who throw temper tantrum like children when facing things that they considered as offensive.