At least 1,028 people died of heat-related issues during the heatwave, the public Carlos III Health Institute said.