I am really afraid of battery fire after looking at many spontaneous exploding battery videos.

Is there a safe way to charge and store my devices with Lithium battery inside?

Why do they catch fire and explode randomly? Even Samsung, Tesla, Apple, etc have this problem.

Should I buy a fireproof/explosion proof box to keep my unattended devices?

I think my neighbor's house caught fire due to an unattended battery powered device left on their bed, this happened weeks ago.