My laptop's battery is good as I've checked it personally using hp support assistant,it showed me no problem.but after browsing through a lot on web many reported saying because of defective fan working causes system to auto switch off,but in my case fans are working good though sometimes system switches off abruptly,laptop is HP 15-ac-125-tu and operating system is windows 10 pro.