I am not sure if this one fits as an answer. But as far as I know, Ludwig Wittgenstein was also a mathematician aside from being a world-class philosopher. This part of his biography caught my eye:
Born in Vienna into one of Europe's richest families, he inherited a fortune from his father in 1913. He initially made some donations to artists and writers and then, in a period of severe personal depression after the First World War, he gave away his entire fortune to his brothers and sisters. Three of his brothers committed suicide, with Wittgenstein contemplating it too.
He left academia several times—serving as an officer on the front line during World War I, where he was decorated a number of times for his courage; teaching in schools in remote Austrian villages where he encountered controversy for hitting children when they made mistakes in mathematics; and working as a hospital porter during World War II in London where he told patients not to take the drugs they were prescribed while largely managing to keep secret the fact that he was one of the world's most famous philosophers.