Type of Cognitive Bias where someone continues to justify their suffering It seems to me that there is a type of Cognitive Bias where someone continues to justify their suffering by claiming it was &quot;meaningful&quot; or &quot;necessary&quot; even in the face of clear evidence to the contrary. What is the name of this type of cognitive dissonance?
Examples could be:

Working long unpaid over time on a project that was completely miss spec'd and useless but insisting it was useful in spite of strong evidence to the contrary.
Justification of participation war in spite of evidence that the war was built on false pretences and had a net, very negative outcome.
Maybe also being a victim of abuse and maintaining that &quot;you deserved it&quot;, when quite clearly you didn't.
Donating to a charity that has been shown to embezzle funds and flatly denying that the funds are used for the good cause you intended.


The closest I can get to explaining this is the sunk costs fallacy, but instead of investing more time or money, it is the continued investment of &quot;mental energy&quot; to maintain the incorrect position. The function of this is to prevent someone having to accept the truth, and process the trauma of the event.
What you're talking about I believe is psychological rationalization.

In psychology and logic, rationalization or rationalization is a defense mechanism in which controversial behaviors or feelings are justified and explained in a seemingly rational or logical manner to avoid the true explanation, and are made consciously tolerable—or even admirable and superior—by plausible means.[1] It is also an informal fallacy of reasoning.[2]
Rationalization happens in two steps:
A decision, action, judgement is made for a given reason, or no (known) &gt;reason at all.
A rationalization is performed, constructing a seemingly good or logical &gt;reason, as an attempt to justify the act after the fact (for oneself or others).
Rationalization encourages irrational or unacceptable behavior, motives, or feelings and often involves ad hoc hypothesizing. This process ranges from fully conscious (e.g. to present an external defense against ridicule from others) to mostly unconscious (e.g. to create a block against internal feelings of guilt or shame). People rationalize for various reasons—sometimes when we think we know ourselves better than we do. Rationalization may differentiate the original deterministic explanation of the behavior or feeling in question.[3][4]
It is important to put emphasis on the notion that rationalization is &gt;exclusively a defense mechanism; as such, it must be a denial of an &gt;idea.[citation needed] Many conclusions individuals come to do not fall under the &gt;definition of rationalization as the term is denoted above.

https://en.wikipedia.org/wiki/Rationalization_(psychology)