Heat tolerance of Pixhawk during summer

I seems to have heat issue with pixhawks specifically pixhawk 6, pix32mini during summer or flying in hot country. It gets heated up easily. Today my M9N gps micro from holybro had a malfunction compass. Can’t seems to “just work”.
Previously also had the same thing with the fc.

Didn’t had the same issue with orange cube?

Anyone had similar issue? Does matek had the same problem?