The OP is not alone in that, I also chuckle/grin when under huge stress (it sometimes also happened when I heard about the very bad health condition of people really close to me), and saying that "one should get this habit under control" is like saying to depressed people just to smile so that they won't be depressed anymore (and it's also like calling depression just a "habit", but I digress).