This.
Many emotional problems that are highly dysfunctional can be missed or masked by raw intelligence until a certain higher level of intellectual competition or pressure is present.
Having participated in frequent academic competitions in high school in a top-5-biggest metropolitan area in the US, there was one guy in my era who pretty much won city-wide awards in any subject he touched all the time. So bright. He got into an elite college and spiraled out and dropped out for what, in hindsight I'd armchair-diagnose, were a mix of ADHD/Autistic/anxiety-oriented tendencies that collided with online gaming that hadn't caused failures in earlier environments for him.