He's diagnosed with bipolar back in 2016 and talks about refusing medication because it messes with his ability to create/be creative.
It's possible that he's exhibited symptoms for far longer but it was brushed aside under the guise of kooky genius. I mean, the Taylor Swift thing was, what, 2009?