You can achieve a greater safety effect (and a lesser insulating effect) by using velcro cinch straps. These straps will clamp the living hell out of the battery so it cannot move no matter what.
Its still a terrible idea to leave a battery on a bike when its on a rack on a moving car. I use these to secure a battery while its bouncing along a rough trail, and keep me from relying entirely on two water bottle bosses for support.
What you see below is a bit more extreme than that. I had two 3" straps, and one 2" strap. You use cinch straps. NOT just the velcro you buy at Home Depot so you can clamp the straps tight. I DID use the Home Depot velcro in two strips on the sides to ensure the straps could never shift, which was overkill. Really they just give me what I think is a more attractive look.
And the hose clamps you see clamping the base to the frame are another bit of extreme solution that normal people will not emulate.
View attachment 17246