This reminds me an old Reddit story where a guys gets a head injury and lives a full life for 10 years in a dream.
He vividly remembered getting married and having a kid. Eventually, he woke up and the dream was only a few moments but he grieved the loss of this wife and child.
https://knowyourmeme.com/memes/the-lamp-story-reddit-creepypasta