I’ve always done it like this. Find the safe voltage for that cpu. My ryzen 7 1800x is 1.4volts. I set the clock speed as high as I can til it’s not crashing, once it’s not crashing then I start to lower the voltage little by little.
This is how I get the highest clockspeed at the lowest voltage that’s stable. I’ve done it this way since the core 2 duo E8400 and never burned out a cpu. Obviously running the cpu with a water cooler will keep temps lower