Stargate SG-1/Recap/S2 E4 The Gamekeeper

SG-1 ends up in a virtual reality program that replays their past traumatic memories for the benefit of the natives, who have been undergoing pretty much the same thing for the last thousand years.

Cue trauma. As it turns out, the people of the planet accidentally destroyed the ecosystem of the world they lived on and decided to go into hibernation for a while until everything got better. There might be a green aesop somewhere, but the ending leaves that in confusion.

Oh, and there's a character called the Gamekeeper, too. He runs the simulations.