Searching for an SF movie/television episode

A friend of mine is desperately (he posts the question about twice a day on another social media site) trying to find a movie (possibly a television episode) he saw and enjoyed “about thirty years ago.” I will quote his post instead of trying to retype it in my own words:

Yours Truly is trying to think of the name of a tv series or movie that he saw on tv in the U.S.A. about thirty years ago, and maybe you can help him discover it. It was likely in color, but this is not certain. It likely was in a science fiction anthology series. It was about a human astronaut who lands some place in outer space, and something prevents him from leaving the place. Likely his space ship was damaged. Eventually a monster ( which seems somewhat like a giant ape or giant bear, but different from earthling animals ) arrives at the space ship while the astronaut is in the space ship, and the monster tries to break into the space ship. The monster is strong, but the space ship is strong enough to prevent the monster from breaking in, and thus there seems to be no immediate threat to the astronaut’s life, but it is fairly clear that the monster wishes to do something unpleasant to the astronaut. Furthermore, the monster notices that a door to the space ship is locked, and it is a combination lock, and the monster tries some numbers in the lock, and it is not the right combination, and then the monster tries another combination, but it is not the right combination, and it seems that the monster intends to keep trying combinations till the door opens. The astronaut sure seems frightened when he realizes what the monster is trying to do. The astronaut’s thoughts seem to be “That monster intends to keep trying combinations by using all possible combinations. If it gets the right combination, the door then opens, and the monster comes in, and it then rips me to pieces. Likewise i might be trapped in here for many years, and i might die before the monster comes in. I can’t leave. I must stay here, waiting, knowing that the monster might get the right combination at any moment.” The episode or movie likely was about twenty-five minutes long.

SIR RHOSIS AGAIN: Thank you in advance.