Many years back Star Trek had at least one similar episode. This planet was off limits to Federation ships because the inhabitants could create such virtual images in the minds of any Star Trek crew member. They went there for some reason and had to blast away a with a laser door. They ended up using all the power of the ship, asking for all available power to to the laser... and the door still would not yield.... then they realized it was just a mental illusion... the door was long gone!
Sounds like they may have borrowed an idea.