As extreme heat grips much of the country, some power grids may struggle to keep up with rising energy demand. But that is not the only challenge grid operators face in this heatwave.