Microsoft has a free Windows 11 battery health tool to diagnose your PC - how it helped me ...
Whether you're still running Windows 10 or upgraded to Windows 11, a Windows battery report will help you keep tabs on the health of your laptop's battery.
If your Windows 11 laptop shuts down without a low battery warning, check notification settings, enable low battery alerts in Power Options, apply energy recommendations, and assess battery health.