Stargate Atlantis: Doppelganger
Sheppard encounters a crystalline species similar to one that Jack O'Neill encountered ten years ago, but this time around it's different, the alien entity is evil and invading the team's nightmares in a bid to destroy the rest of the expedition.