Have a look in the windows settings. I use it in Dutch so don’t know how they call it in English, but in energy settings you can go to advanced settings for your profiles, and than you can yourself change at what battery % you get a message to warn you, but you can also set what the Critical charge state is. I have never tweaked it on my laptop, so I guess the 5% is a default setting. You can decide what it does when it hits that charge state, sleep mode, hibernate or close. For me the default settings are hibernate, and that is the best solution since it requires less energy than sleep mode. Sleep modes uses the ram to store your session, and ram does require power from time to time in order to not forget. Hibernate stores your session on your boot drive, that doesn’t require power to keep the data stored.
I still have to find how you can cap of your battery from fully charging, I did manage it on an older laptop that has been gone. Ofcourse, finding your way in windows settings is not that user friendly, but with a little effort you can get it done (just like I did, I just tried if there was an option in energy settings, and found the possibility in advanced settings, took me 5 minutes). I will try if I can find the way to cap battery % for when charging