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.
In the realm of quantum gravity, the fabric of spacetime is woven from the threads of entanglement.