The devices may seem small, but the lithium-ion batteries inside them are creating a costly and dangerous problem.