While the device is on charge, follow these steps:
Go to the device manager
Uninstall the battery driver without deleting files.
After about an hour, power off the device by holding the power button.
Power on the device the next morning.
You might need a Microsoft Surface Pro battery replacement if this doesn't address the issue.