This is also what I am wondering, what are the ballpark operating temperatures under the panels for an optimizer or microinverter.
It seems to be mounted on the rail underneath a solar panel. Also near the top, I think the heat (convection currents) would be cumulative from panels below.
I don't see any spiders or snakes there, it's gotta get hot

HMS microinverters (label) rated to 65°C ambient but we hear it was not a heat problem causing this failure.
From
MC Solar & Electrical review:
"... got up to 77°C internally... on a 25°C spring day"
"If you’re concerned about longevity, the Hoymiles inverter runs ridiculously hot."
Snippet of Hoymile response to the review:
"Third, the temperature rise
1. Your test result shows that the internal temperature of the 4-in-1 Hoymiles microinverter is 10 degrees higher than that of the 1-in-1 Enphase microinverter. This is true, and higher temperature does affect the product’s life;
2. But internal temperature alone can not decide the product life and long-term reliability. Actually, in the early stage of development, we conducted a comprehensive research, simulation and test on the heat dissipation of the machine and the temperature rise of the internal components, and then we decided to place the most critical component the electrolytic capacitor (whose temperature rise has the most impact on the product’s life) at the coolest area inside the microinverter. This can ensure the longevity and reliability of the product."