maybe there's nothing to do and if some years have passed the price of your hold is great, but it's best to put all your wallet info just as soon as your family finds it or you can tell them if you go procedure how to make money for not being able to work
I guess it is too hard to predict the time when we are going to die, don't you think? There are different ways on how people die, slowly or instantly. So, there is nothing we can do if we die and our family doesn't even know where our cryptocurrency is, and the cryptocurrency of yours would remain in this world because you can't bring it on the others side and trade, lol.
It's better to a make a testament of well to ensure that even when you're died your wealth or crypto has been given to your heirs. Be sure that everything (private keys) are stored in a proper storage and make a backup storage. Nobody knows when we're going to die it's better to be prepare than everything will be vanish.