collision pathfinding
villagers can't path find through occupied beds, I think the problem is the collision. Just spawn a lot of villagers with beds in random directions all over, without open space, I recommend using ~30-50 beds in a sphere, and if you want, add job sites to position them better.