Technically, mental illness is a character flaw ("a limitation, imperfection, problem, phobia, or deficiency present in a character who may be otherwise very functional"[0]).
To be clear, I'm not singling out people with mental illnesses; as a person with a physical illness, I would have considered it to be one of my "character flaws".