I will speak from my experience. When I was younger, I considered myself very smart, and I was pretty unhappy. As I grew, I met people much smarter than me; I stopped seeing myself as "the smart" one, and now I am pretty happy. It's not that I became happier because I became less smart; I became happier when I stopped thinking my value was based on my intelligence, so I stopped trying to be recognized by my intellect…
One cannot think oneself into these states. These things grow like good things in a garden.
The world is full of unhappiness that only caring, compassion, and actual effort can fix.