my processor is freezing in 3.9 with h410r cooler.
No information on your computer setup.
How are you cooling the Ryzen APU? Air or Water Cooler? Using a Stock or 3rd party CPU Cooler?
What is the Make & Model of your PSU? is it a 80 Plus PSU?
But found this tech site that may help you Overclock your Ryzen APU 2xxx series: Overclocking The AMD Ryzen APUs: Guide and Results
Here from another Tech site that has a guide on how to Overclock the Ryzen APUs: AMD Raven Ridge (2000-Series Zen APU) Overclocking Guide