Gridfinity units: 1x1x8
3 GoPro batteries just barely fit into a 1x1 footprint. If you need it a little shorter in height, 7 units high could work. Not sure about 6. If you want a shorter version let me know and I'll help you out.
If you're happy with my work, consider buying me a coffee for just $1. Small gestures give more motivation than you might think. https://www.buymeacoffee.com/FastLaneEngineer