you need to check the battery health and condition first.
Type or paste '''powercfg /batteryreport /output "C:\battery-report.html"''' into the window and press Enter to run the command. Open Windows File Explorer and access the C drive. There you should find the battery life report saved as an HTML file. Double-click the file to open it in your preferred web browser.
If battery health is good then you need to go to repair shop.