Well this issue needs to be discussed by every bitcoin user bit no-one thinks about it. As giving your seed phrase might be risky but what if you put it on a safe place and mention it in your will which much be disclosed after your death.
In general, someone who already has a wife or family, he will give the private key to his bitcoin wallet to his wife or family so that the Bitcoin he has can be used for the needs of the family he left behind. From now on we should give a mandate to our wives so that one day our wives can benefit greatly from the Bitcoin legacy we leave behind.