Hi Abishek. I'm Greg, an installation specialist, 10 years awarded Windows MVP, and Volunteer Moderator, here to help you.
The only ways to limit battery charge are here:
https://windowsreport.com/software-stop-battery...
What you should do with a possible defective battery is contact the manufacturer under Warranty. It's possible the battery even has a recall posted on the Laptop model's Support Downloads web page. These usually will stretch beyond the one year warranty period since there is risk to life and limb with a bad battery.
So I would contact Support even if it's out of warranty.
I hope this helps. Based on what you report back I can answer any questions and may have other steps to perform. If you'll wait to rate whether my post resolved your problem, I will keep working with you until it's resolved.
______________________________________________
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.