Well, then. let's hope it doesn't roll sideways.
I've thought about the same for my Baja Beetle. I figured to start with a 6- or 8-point roll cage and make the battery box a brace inside that. Steel angle on the tubes holding a basalt fiber box because it's an electric insulator.