My vented battery box is completely sealed with a weather tight lid and where cables come in/out and the only opening is the outside vent and a couple of drain hole in the bottom of the battery box to drain off battery fluids to the ground.
I use an electrical PVC junction box with a weather tight cover and a large 2-inch hole cut in the middle of the box to route my cables to the battery box... My battery cables are routed to my battery switches and fuse blocks etc using flexible PVC conduit.


I suspect that any fumes being vented by the batteries will escape to the outside via the larger outside air vent.
If you have large holes cut into the sides of your battery box for cables then I suspect you will get fumes inside your battery box area.
My 5th wheel trailer has a sealed battery box in the pass through storage area but my off-road popup trailer has a regular non-sealed snap on lids with large openings mounted on the trailer tongue.
Roy Ken