

Google did some research on this way back when. Failure rates start going up at an average temperature of 35 °C and become significantly higher if the HDD is operated beyond 40°C for much of its life. That’s HDD temperature, not ambient.
On the contrary, they found that temperature had almost no bearing on failure rate.
That will kill your drives far sooner than a temperature spike. load/unload cycles is one of the biggest HDD killers.