Enhancement of stabilization of MPS to arbitrary geometries with a generic wall boundary condition