There will always be a development of heat when using an LED flashlight or headlamp, as the LED emits heat as well as light. When running an LED hard to create a high lumens output, the heat buil-up will be equally high.
Leading heat away from the LED chip itself is one of the finer arts when constructing high performing flashlights and headlamps.