Stargate SG-1: Season 2, Episode 4
SG-1 is imprisoned in a virtual reality realm and forced to relive the worst moments of their lives over and over.