You may need to add some timber into the frame or get a welder person to modify the section where battery boxes can go
If you use pressure treated timber
Use some sort of galvanized or plastic flashing to keep the timber off the frame galvanized bolts to hold timber in place
You can also look to see if a tongue toolbox would fit the batteries then you may have room to put decent battery disconnect , shunt, or busbars