...no?
In almost all cases, these syndromes are not appropriate responses to the environmental stimulus. OCD is not adaptive in any situation. Neither is Tourette's. Neither is anorexia nervosa. Neither is akinetic mutism. Neither is tardive dyskinesia.
(Hypomania and ADHD-PI might be adaptive in exceptional environments — there's some fun hypotheses about that. But these are the exception. Most neurological conditions have no such "advantageous situation" where expressing the phenotype in a lifelong way—or even the constant lifelong potential to trigger the response—would be always advantageous to your reproductive success.)
Instead, as we now understand, these syndromes happen almost always because of random genetic mutations to genes coding for proteins/enzymes responsible for creating, transporting, receiving, and destroying neurotransmitters.
Like, for example, https://www.snpedia.com/index.php/Rs53576. Get an A;A mutation, and your brain's ability to react to oxytocin is toast. (And this is common! And just look at all the reported downstream effects when it happens!)
There's no purpose to this mutation. Just like there's no purpose for a gamma ray bit-flipping a DRAM memory cell. Your genes aren't set up carefully so that randomness will intentionally introduce this SNP every so often, to ensure there are some people like this in the population. Rather the opposite: your cellular machinery will, in fact, try as hard as possible to ensure that this mutation doesn't happen (with introns, redundant coding sites, gene silencing, etc.)
And, to be even more clear, these are unfit mutations, that lower their subjects' reproductive success. They weed themselves out of the gene pool, rather than being passed on. Non-functioning versions of beneficial genes are always-recessive vs. their working versions, and so will be bred out of the gene pool. These are un-selfish genes.
So, that (hopefully) being clear: why should my mind listen to the goals my broken brain is setting for me? I know better than it does. Like the fault-tolerant software running on a Mars rover "knows better" than the rover's individual CPUs do, blasted with radiation as they are.
I, as a mind (and even better, I as a cyborg of mind + written storage), can perform the sort of long term comparative analysis of my own emotional states, that my brain on its own simply can't. And therefore, I know things about my brain that my brain doesn't.
My brain isn't a wise old wizard with mysterious purposes, who I should trust to tell me what to do. It's an overclocked gaming PC during a brownout, that desperately needs a UPS.