For one thing, learning you’re not real doesn’t feel any different from the way you felt before. Pain still hurts, even though no actual injury is being inflicted; happiness still feels good, even if the things making you happy are as fake as you are. The “will to live” still subsists, because that will was programmed into your character (and so was a fear of death).