Lol.
A dark sense of humor can make things easier to handle.
When I was in Iraq 15 years ago ( Civilian) in North Liberty/ Camp Victory I was working away and got very tired. I thought of my oldest niece who told me that If I was ever tired Red Bull works great. I said to myself,”Wish I had a Red Bull”. But I didn’t. Suddenly, directly over my head, the sizzling sound of the fuse of an incoming mortar round, then a Whoomp sound ( not a thump) and a shockwave hit me. ( I , unlike 15 others 50 yards from me , was uninjured). I was calm and wide awake for hours after that, and immediately thought , “That's better than a Red Bull!”.
Dark sense of humor works for me. I even laughed when I was in a bout gasping for breath when I had Covid in June and thought how ironic I got moderate covid after having made sure long ago in September to volunteer and get vaccinated. I had to stop laughing cause it hurt a lot and made me gasp for oxygen more. Which was funny to me too. Yep dark sense of humor. Military actually says it helps in coping with events, so I am covered in that department.
A dark sense of humor at its core, is still a sense of humor. So sometimes, that is what can keep one going. Never lose it as it can be the one thing no one can take away. (I know at that point you know this but I wanted to echo what you said)