I think your battery is bad so maybe replace it maybe or maybe you charger is dirty or broken.
+
+
=== Update (01/21/2021) ===
+
I’ve had a problem like that before but we couldn’t fix it because USB was broken on the device then it went dead forever. The device was a Kindle Fire 7.