Very unlikely to be software issue. Might be dying battery, could be fried/dead fuses and/or other stuff around battery. Or some other stuff. Anyways you could try replacing battery if it's cheap otherwise take it to repair.
Maybe someone more experienced could answer you with more certainty.