Of unsound mind adjective
– Not of sound mind, memory, or understanding; in law, not competent to go to trial.
Mad as a hatter
and of unsound mind
are semantically related in insane
topic. You can use "Mad as a hatter" instead an adjective
phrase "Of unsound mind", if it concerns topics such as mentally strange