I have vague memory about a movie or episode where someone was trapped in a fantasy driven nightmare like hellscape scenario similar to the movie The Cell and has to fight someone there or help someone else in order to get out. Or maybe he needs to rescue or free that person there and if he fails everything starts again but in a different form. I would describe this part to certainly have some horror aspects in it.
It certainly was available in a German dubbed version when I watched it at least 10 or more likely 20+ years ago.
But maybe I am mixing up memories here.
The thing I most certainly can remember is, at the end it’s revealed the person is in a sort of induced coma or stasis because he murdered someone and this is his sentence, he has to reflect on, or be punished for his crimes in this way and will serve much more prison time in his mind than in a normal prison.
- If my memories about the first part are correct, I think he is supposed to help the person he murdered in this fantasy scenario.
But the prison part was only revealed in the surprise ending of the story - in a Outer Limits kind of fashion. The guy doesn’t know he is in captivity (at least not in this kind of way) and the viewer only realizes it at the very end, when people at the facility talk about him or this new kind of prison system.
It popped up in my mind again while watching the ending of the movie Archive and I searched for this kind of plot for a long time now and found an episode of Outer Limits, movies like The Cell or Otherlife but still couldn’t find what I remember.