How old is the laptop? I have 2 from 2014, one used exclusively on AC, the other sat for long periods of time not used, and both had batteries that puked after 6-7 years.
I tore apart the batteries and both had cells that kept a charge. Makes me wonder if a charging circuit or voltage regulator died on both of them?