Walls with zero health are supposed to imply that you are able to walk through/over them, and while you can do that, the walls will try to glitch you out and away from them. Having a bunch of zero hp placed in one place will glitch you all over, even preventing you from getting out from their clutches. I learnt this the hard way when trying to run through a bunch with tentacles surrounding them.
1) Place a bunch of walls, or even one down. 2) Attack it with any weapon/tool till its health is down to zero. 3) Walk over the wall(s).