I have a bold guess, this is caused by static electricity on the main board.
My machine is GL504GM, which has the same problem as yours. After I tried to unplug the battery and fan wiring on the motherboard and plug it in again, the problem disappeared.
And for the next few days, there were no problems. But over a longer period of time, the problem will slowly recur.
My guess is that static electricity from the motherboard caused the control chip to go crazy, so the fan went crazy.
Improper computer design, ungrounded power sockets or defective motherboards can cause static electricity to accumulate on the motherboards.
Similarly, higher temperatures may affect static electricity on the motherboard, so high processor loads may bring the fan back to normal.
Now every once in a while, I unplug the battery and fan cables from the motherboard and plug them back in. The problem can be solved temporarily.
Before, any software or BIOS update that caused the problem to disappear may have been done by them just as the fan problem disappeared, so they mistakenly thought that their operation caused the fan repair.
Above is my guess and method, at least this method is useful in my GL504GM, I hope it can help you.