Air cooling : 5 minutes minimum, after that there's very little if any changes in case temps or cpu temps or airflow, so you can run it as long as you feel comfortable doing so.
Liquid cooling : 30 minutes minimum. Liquids are far slower to accumulate heat physically, so time must be taken for the coolant to get saturated according to load. Accumulating heat is different to transporting excess wattage. After @ 30 minutes the coolant will have reached equilibrium and you'll get an accurate assessment of the efficiency of the cooler, which sets exactly how much cooling it can apply.
Time limits are minimum set, not maximum.
Stability and temps are not the same thing and shouldn't be treated as such. Prime95 used to be the gold standard, but with changes in cpu design and software implementation, it no longer is good at all for stability. It's great (small fft with AVX technologies disabled) for temps as it supplies a constant 100% load on the cpu. Many others do not, they'll include AVX or linpack and end up with a variable load that'll bounce between @ 80%and 130% loads, which doesn't give a realistic idea of where max gaming will put you.
Asus RealBench is far better suited to stability as it uses a mix of fluctuating loads and different combinations to try and trip up the pc. Which is what games do. Using ram, storage, cpu, gpu etc to hit the pc from a multitude of different directions.
Temps are a specific target, stability is not.