CPU fan stuck at high speed sometimes

I notice that this issue appears when device configuration was changed.

Agreed. This most recent time I ran into this issue, I suspended the laptop with an external mouse plugged in, unplugged the mouse, and then woke up the computer. On wake up, the CPU speed was stuck at the lowest speed (400 MHz) and fan was going full bore.

Another suspend/wake cycle without changing anything brought back normal behavior.