Stargate or one of its spinoffs.
Just SG-1, please. Never got into SGA and Universe was awful.
Stargate started repeating itself in the first couple years. Even the spinoffs stole elements from the original. Including the “automation gone amok” plot...
SG-1 was great but showing signs of wear by the 10th and final season. Atlantis still had signs of life during the 5th and final season - that could have gone longer. Universe was bad and I quit on it after five or so episodes.
By the way, the 2 part episode of SG-1 “Heroes” is probably the best two hours of SF tv I have ever seen.
The one that was on the space ship. It was different.