In Cory Doctorow's Walkaway, a human's mind is uploaded to a computer after her death. Except, the scan of her brain is not perfect, because physics. So, the uploaded mind keeps going insane every few hours/day. And the researchers keep trying to play with the simulation parameters to try to stabilize it/her.