The only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle.
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.