can flashlights overheat and turn off automatically?

Yes. High-power flashlights may overheat and shut off automatically due to built-in thermal protection. It is a safety feature, not a fault. It will work normally again after cooling down.
Why Do Flashlights Need SOS Mode? The Life-Saving Feature You Hope You Never Use
365nm vs 395nm UV Flashlight: Which One You Should Choose

Black Light UV301-395nm UV Light AA batery Blacklight uv Torch for UV Glue Curing, Rock and Mineral Identification, Fluorescent Agents, Pet Urine, Stain Detection, AC Leakage Detection.

View details