The answer to this question is coping style or coping mechanism.
Coping refers to how a person would make effort to solve their personal and interpersonal problems to reduce stress to the extent that they can tolerate.
There are various types of coping styles that a person can have, but three strategies that are commonly known are appraisal-focused (directed on challenging assumptions that the individual has), problem-focused (directed on eliminating the stressors), and emotion-focused (directed to changing emotional reactions).