Unironically, yes. Multiple studies dating back years have found a link between high intelligence and various mental health issues.
There was one particular paper I read about a decade ago, where researchers surveyed a bunch of collage students to find demographic trends based on their preferred operating system. From what I recall, the demographics of Windows users were not too far off from those of the university as whole, and Mac users were similar, aside from women being significantly over-represented. Linux users on the other hand, were almost all men, and nearly every mental health issue imaginable was over-represented by a huge margin.