Tree House of Horror VI - S7-E6
Factual error: In "Nightmare On Evergreen Terrace", Martin has a dream, in which he speaks Latin. At one point, he says a verb that doesn't exist: "morire". The words is "mori" (to die), "moritur" (noun dies) or "moreris" (you die). The "moirie" is also on the blackboard behind Martin. (00:08:20)
Tree House of Horror VI - S7-E6
Factual error: During the "Attack of the 50 ft. Eye Sores" segment, the family steps into the footprint of the giant donut guy to look at the label. The label should appear to be spelled backwards, but it was not.
Answer: I'm not sure if this is the one you're thinking of, but an episode of "Ray Bradbury Theatre," called "A Sound of Thunder," dealt with a similar matter: a group of hunters travel back in time to hunt dinosaurs, only to find things have changed when they get back because someone stepped on a butterfly.
Xofer