This change in behavior is best described as "compensation".
Alfred Adler, pioneer of the school of individual psychology, presented the term compensation in connection to inferiority feelings. Compensation is a psychological procedure that might be either cognizant or, all the more much of the time, an oblivious defense system by which a man endeavors to compensate for real or envisioned physical or mental inadequacies.