In RL? Medieval tech is basically renewable, so If you would introduce a religion that limits population growth, it'd cause stagnation, so it could last until a pandemic wiped it out... I'd say 300-500 years? >:)
(Oh, hold on: that *is* how long it lasted...)