How to Sleep Well, With Risky Investments