I don't think I've seen candles in tins aside from tealights.
I've just looked up, and there are British / EU safety standards for candles, which suggests that it's possible for a candle to be constructed in a safe vs risky way. Now I've seen that, I would probably avoid purchasing candles from any online marketplace like amazon/Temu etc where they often seem to sidestep these guidelines, and possibly also from craft fairs or places like Etsy, though you could talk to the seller in that case and ask how they ensure their candles meet safety standards.
And then if you buy from a physical store then check whether there are any safety instructions (e.g. about what kind of surface to use) and be sure to follow them. Some candles are only designed to be used within a particular kind of holder, I think that's likely to be the case with anything where the outer case of the candle itself becomes hot.
For future reference, to put out a fire you either need to cool it down significantly, which is why water can work, or smother the flow of oxygen to the fire. When the fire is fuelled by some kind of liquid, like oil/grease or melted wax, water can be dangerous because it just spreads the fuel out since greasy fluids float on water. This is why some fire extinguishers use foam or powder. Water should also never be used on electrical fires as it can cause short-circuit sparks.
So to smother a fire when water is not working or could be dangerous, cover it with something heavy and non-flammable, like a fire blanket if you have one, an upside down saucepan, a candle extinguisher, a heavy coat or blanket, or a good makeshift measure is to soak a teatowel in water, wring it out so that it is not dripping, and use that.
And one last thing, if you ever experience a rechargeable battery fire, do not try to extinguish it, just get everyone out ASAP and call the fire brigade. Those are extremely dangerous as they burn at such high temperatures and home methods to put them out are not enough, you will hurt yourself trying.