Battery detection abnormality in energy storage