Has anyone ever seen an old Twilight Zone episode titled "Perchance To Dream," written by Charles Beaumont?

It's about a man who stays awake for days because he thinks he will die of a heart attack if he has a recurring nightmare again. He goes to a psychiatrist's office to explain his dilemma and ask for help. But when he sees the secretary, he recognizes her from his nightmare and leaps out of the window to his death.

I won't spoil the ending. I'll just say it involves quite a twist dreamwise.