The only TV show which could have lasted forever, with suitable scripts, would have been the Twilight Zone and its spinoff, The X-Files. Every other show eventually loses the relevance race. But conspiracy theories and strange occurrences never go out of style.
Twilight Zone could’ve gone on forever because it was more of an anthology than a series.