What a coincidence, I'm 41 too. But my mindset is quite different from before now. When I realize that retirement isn't that far away, I do get a bit panicked. I don't even have kids yet, so at least you can channel some of your energy into your child.
However, I’ve raised my goals a bit lately. I’m not just focusing on my career anymore; I’ve started setting goals outside of work. I want to challenge the script I've always had for my life by trying things like starting a business or doing research. I've found that these pursuits give me a stronger sense of purpose, which has definitely helped ease that sense of panic.