I think the PCBs are working against you here. You’re losing a couple of millimeters to them at least.
However if you used flat copper braid for the series connectors and then covered them with heat shrink between the cell groups and put fishpaper over them you may be able to get away with just the foam, but you’ll probably still want the rubber gasket @Accrobrandon mentioned.
[Dkr48.99 55% OFF]XANES 2 in 1 500LM Bicycle USB Rechargeable LED Bike Light Taillight Ultralight Warning Night Bike & Bicycle from Sports & Outdoor on banggood