A warning about disposing of batteries has been issued after an e-bike battery exploded at a recycling centre in Dorset.