This is battery wear, not a software issue.
Calibration might slightly improve the percentage reading, but it will not fix sudden shutdowns if the battery cells are degraded.
Open Command Prompt as Admin and copy-paste the following:
powercfg /batteryreport and hit the Enter key.
Open the generated report file.
Look at: Design Capacity and Full Charge Capacity
If Full Charge Capacity is below 50–60% of Design Capacity → battery is near end of life.