when ventilation is needed, more is usually better... and positive ventilation is better than passive ventilation.
hydrogen (battery gas) rises and it should be vented to the outside of the boat (or cockpit).
there are many more boats that lack any outside ventilation for the batteries, than there is those with ventilation... and for boats over 15years old, the majority of them dont even have a dedicated battery space, but have the batteries secured on a shelf near the engine or setting in a locker inside the living space of the boat.
if the ventilation is passive, it should be bigger, and if its positive, a smaller vent tube is fine.... the difference is, with a passive system, the gas exits at its own leisurely time and needs a larger vent to do so, where the positive ventilation will force clean air in and push the gas out thru a smaller vent line...
this positive ventilation can be accomplished simply with two clamshell style cowl vents, with the lines running to opposite corners of the box.
but unless the box is well sealed, some of the gas will undoubtedly escape to the space within the boat, so in that case I would argue that it may be easier to create positive ventilation in the space with an engine compartment blower fan to bring fresh air in, and keep the sparks to a minimum when equalizing the batteries.... as long as you have fresh air coming in faster than the batteries are creating the gas at explosive levels, there will be no problems....
and short term breathing of hydrogen is not so hazardous as long as the concentration does not reach the level where it displaces the amount of oxygen that is needed to sustain life, OR, as long as the concentration does not get so high that it could explode in you.
deaths to consumers by explosive gases is commonly due to them inadvertently breathing the gas into their lungs, and when the explosion/concussion occurs, the air/gas in their lungs is pushed out, ignites in the explosion, and the small amount of gas left inside them is still enough to flash burn, at a very intense heat... and interior nose, throat and lung burns are almost always fatal.