TOS has such episodes.
Yonadans in “For the World Is Hollow and I Have Touched the Sky” s3e8.
To a lesser extent the people on Beta III in “The Return of the Archons” s1e21. They don’t know how to work the technology, but they fear more than worship Landru.
Maybe the people on Gamma Trianguli VI in “The Apple” s2e5, although I don’t remember whether or not they were descendants who lost knowledge of technology and just started worshiping Vaal.
That was such a bad situation. The whole, “how dare you question me, get out,” loss of Gates McFadden. Dr. Pulaski’s introduction as Bones 2.0 instead of as a distinct, unique character, and her first comments to Data. I think Diana Muldaur is very talented and a Star Trek icon – TOS and TNG. Pulaski is a strong character, but that first impression was hard for me to shake. I was happy when Dr. Crusher returned, but by then I was also also sad to see Dr. Pulaski go. I wish that PIC had made room for a Dr. Pulaski appearance.
“We have always believed that The Wrath of Khan is the fulcrum movie upon which Star Trek turned.”
I think that this cannot be overstated. TMP did not get the reception, recognition, and bucket loads of money, the studio was banking on. It no doubt took a lot of work, and luck, to get the studio to back a second Star Trek film, even with its much lower budget. There are many reasons we have the current choices of Star Trek series and movies, but I don’t underestimate how vital TWoK’s success is with the situation. This sounds like a fascinating book, and is definitely on my “I want” list.