In 2016, I experienced psychosis consciously for the first time. Back then, I was working on a video game. I recently moved back to my parental home, though the financial situation was rather precarious: I had to waste all my savings on living expenses because family finances dumped and I had no income. Worse still, my rig used for game development broke down and I had nothing to replace it. So I became depressed, and eventually psychotic. Eventually, the team tore apart, since I had nothing to continue the project myself. I was unable to get employed because of my local reputation as a psychotic, though I eventually found work as a medical administrator for a month, which I found that soul-killing and wasting of people's potential that I do not wish this for anyone to happen.
To be honest, this all sounds like really bad planning and careless behavior to me. You had no money, and instead of trying to at least find a side job to help with that, you wasted your time on something as unreliable as game development? And focused so much on it that, despite living with your family, which should give you some base stability, the fact that your PC broke made you spiral down into depression? Maybe I don't quite understand the nuances of the situation, but this whole thing sounds like there were some really bad decisions involved in this.
The way you're telling the story makes me think that neither society, nor capitalism have had much to do with this.
This particular episode made me wonder to which extent capitalism is the cause for most mental problems.
In general, I don't think it's fair to say that capitalism directly "causes" mental problems, but it's very true that environments created by capitalism have a lot of trap doors that people fall into - and there are more and more of them, as our societies become more and more complex, and the time planned in for "resting" seems to become shorter and shorter. That's especially true for American-style capitalism as the fallback options for people who don't work well in the system, or come from a background of poverty are very... basic. Being poor in America can be a drain on one's personal mental and physical health, and if you make bad decisions like having kids without a stable income, well, you'll probably not live a good life at all.
(Central and Northern-) European capitalism works differently, in that it weaves in social policies that attempt to push the minimum life that you can expect to have - even as a person who's in the middle of having to deal with a severe mental illness - to something that is livable, while not interfering with the good things about capitalism. In Germany, you can live a small, but decent life even if you've never worked and are likely going to be unable to ever participate in the work force. But of course that's a matter of expectations - will you be able to afford a high-end rig to develop games? Probably not.
Both systems share the pitfalls at the upper end of the scale, where there are very high stress jobs that can severely damage the mental well-being of people who can't deal well with the stress caused by such jobs. Other people will work just fine in such positions.