Lithium battery pack protection