Google did a HUGE study of hard drive failures in their farms over time. It turns out there was very little correlation between operating temperature and fail rate. (corrected for obvious outliers such as drives catching fire due to faulty bearings, etc.)
The biggest indicator of fail rate was actually time of failing. That if the hard drive was going to fail, it failed real fast (first months). Once it got past this "birthing" phase, a warmer drive lasted just as long as the cooler one.
Now I can't say in any scientific way that a HDD lifespan has the same variables as a Router (i.e., moving parts). But my anecdotal experience of electronics for over 20 years is very similar to Googles. If its defective, it defects really fast. As long as you have reasonable air circulation around your router (not buried under laundry pile), and it hasn't failed in the first three months, Moore's law will "kill" it before the heat does.
The only exception was a sound card I had that died after 5 years of use.