This problem has been occurring for me for two weeks now and there are two solutions
A- If the battery is replaceable, try replacing the battery with a new one
B- Take out the battery and buy a separate battery charger just for charging the battery
The problem is that the flashlight is draining the battery faster then it can charge
The best solution that I could give if the battery is not replaceable is to break the flashlight