Failing to understand the workings of one’s own mind is bound to lead to unhappiness.