@grt22
Focus on discovering differences: i.e., fan control on or off.
Take a look in Task Manager, Reliability History, Event Viewer, and Task Scheduler.
Task Manager may reveal some unknown or unexpected task being launched via the Start tab and any such task is a possible culprit.
Reliability History and Event Viewer may reveal some related error code, warning, or even an informational event that occurs just befor or at the time(s) the fans ramp to 100%.
Task Scheduler could reveal app or utility being triggered during the shutdown process.
Use Process Explorer (Microsoft, free) to identify all running processes.
https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer
You can also run the built in Windows troubleshooters. The troubleshooters may find and fix something.
Also run "sfc /scannow" and "dism" to identify and hopefully repair corrupted files.
Noted that the problem ended when you "set the fans". What exactly was done regarding the reset?
Where was it done - Fan Control? Details?
Then the problem reappeared. How many restarts (look in the logs)?
Take another look while the fans are again back at 100%. Check all settings, tools, etc.
Do the reset and agaIn, before the fans return to that 100% behavior and look for something that changed that correlates with quite fans. And reverts to something else when the fans go 100% again.