Flexible lithium battery safety