Is your battery worn?
Your first port of call should be the Battery Health page (System > Battery > Battery Health). Here Maximum Capacity should be above 80 percent, and you should have Optimized Battery Charging enabled. If Maximum Capacity is less than 80 percent, or you have a message under Peak Performance Capability about unexpected shutdowns, then there's a problem with the battery and you need it looked at.