Hysteresis. Make sure your fan control software offers this. A lot of fan control software is dogshit/designed for older CPUs that didn’t heat up so quickly. You want hyateresis to even out the spikes. It’s essentially a delay in ramping up your fans.
I set my ramp up to be reletively quick, but ramp down to be a lot slower. I think 1 second ramp up, 2 seconds ramp down in my bios. If I had the choice it’d be 2 second ramp up and like 5 seconds for the ramp down.