You don't have to be a victim of your environment. You can be the victor of your environment.
I would not dare to say that there is a direct relation between mathematics and madness, but there is no doubt that great mathematicians suffer from maniacal characteristics.