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.
Behavior is determined by the current stimulus situation and past reinforcement history.
So many good ideas are never heard from again once they embark in a voyage on the semantic gulf.