You can ensure your CPU isn’t overclocking by checking its base speed and current speed in the task manager. Open the task manager by pressing “CRTL+SHIFT+ESC,” click on the “Performance” tab, and check the “Speed” next to “Utilization” to see whether your CPU is overclocked.
You can also check the base and boost clock speed of your CPU from the manufacturer and compare it with its current speed to get an idea about whether it's overclocking.