Firstly, you may try restart by plugging in while removing the battery.
While you get a new adapter, make sure it’s compatible with your device, also make sure drivers up to date.
Open the Start menu and search for "Device Manager." Under "Batteries" you should see a few items: usually one for the charger and one listed as "Microsoft ACPI Compliant Control Method Battery," though there may be others. Right-click each item and choose "Update Driver."
Once the drivers are all up to date, reboot the laptop and plug it in again. If this doesn't resolve the problem, you may want to download the latest drivers from the manufacturer's website. You can also try uninstalling "Microsoft ACPI Compliant Control Method Battery" completely and rebooting, which should prompt Windows to reinstall the driver from scratch.