When you say "flashlight", are you using the LED as a camera flash or as a torch? If the latter then it may be overheating or an electrical issue - the LED was never intended to be used for extended periods as a torch.
Other than that, I've no idea. The only similar issue I'm aware of also occurred when the camera itself was activated, and appeared to be due to the AF mechanism.