As deadly heatwaves become more common, researchers are studying what the human body can tolerate.