I almost died laughing.
I almost died of fear.
I almost died of hunger.
I almost died of thirst.
died laughing, died of hunger, died of thirst are all great. Died of fear sounds a bit odd to me, I'm not sure why! You could say "I almost died, I was so scared". 'I almost died of fear' almost sounds like something I would read in an old book. But see what other people's opinions are as well!