For the boids behavior, keep everything default except the Separation sight radius, set that to 360.
To keep them from going through the walls, there currently is no way to do that withh boids. What I would do is disable the boids behavior once they’re however many pixels away, then enable pathfinding and find a route around the wall.
The wall does not need to have the boids behavior, and give the wall the pathfinding obstacle behavior