The grid is failing on hot days because of the amount of thermal generation they still use. When it gets hot, thermal plants produce less power because their production capacity is related to the difference in temperature between their steam and the ambient air.
Nuclear plants are thermal plants. They are not magic. They have to abide by the laws of physics.