Question: what happens when a youtuber dies?
Answer: Depending on the will or the lack of a will, ownership of the copyrighted works and money earned by them will transfer to another person or persons. Youtube does not suddenly gain ownership; the closest would be if there is no next of kin, and the work becomes orphaned.