Jonathan Frakes may have directed the Star Trek: Next Generation episode that inspired a full season of Discovery, but he chalks it up to pure coincidence.
One Twilight Zone episode about a cruise ship sailing across the ocean has a similar ending to the one in The Lord of the Rings: The Return of the King.