You can be successful and absolutely miserable. You can push yourself to do anything, and be abusing substances at the same time.
Being functional or meeting arbitrary goals of capitalism and patriachy does not make you happy or good.
The point is not pretending to be functional for the sake of it, putting on a facade and calling everything great. It's that being functional often works to help in and of itself.
Getting out of the house, socialising, exercising and working towards your own goals in life, cutting down on booze and drugs, getting proper sleep etc, can and does have an effect and can alleviate the problem. It's not a mask, it's a remedy in many minor cases. Compared to medicalising minor bouts of depression or anxiety (which may well really just be part of the human experience), calling them a 'condition', which may render people more helpless and encourage wallowing in it which is likely to make things worse. Sometimes picking yourself up and getting on with it is what you actually need.
If that doesn't work for you, seek help, sure, nobody's saying you shouldn't.
Undoubtedly, the facade of good mental health is a strategy to be successful in a patriarchal capitalist society. That makes it tricky.
There was certainly a fairly prominent British psychologist (IIRC) a handful of years ago who disparaged some of the anxiety and depression awareness campaigns on the grounds that being more aware of psychological ailments like that, when they were on the minor end of the scale and not actually debilitating, was probably unhelpful. That actually in his opinion "suck it up and get on with your life" might be the best advice sometimes, because such conditions can become self-fulfilling, and getting on with your life, doing stuff and achieving things might be the best remedy. Rather than dwelling on the problem and giving yourself the excuse "I am depressed/anxious"
I don't know how/if that maps to trauma, and there was a lot of backlash...