Isn’t there an old episode of Star Trek where they visit a planet with a population that has become utterly dependent on a supercomputer? And as a result everyone has become very stupid? Will have to track that down…
That's the good old recurrent theme of the lotus eaters, I don't think any Star Trek series has missed taking a shot at it. Weirdly, you'd think that the main computer in Star Trek would have made them stupid, but they override it pretty frequently.
"The Return of the Archons".