I’ve got a library with a few villagers in it, one among them simply will not restock his Mending books. I’ve tried removing every other workbench, I’ve placed a bed under him, I’ve placed a bed in line of sight, I’ve stayed in the chunk he’s in and slept for several days. Nothing seems to work.
Been dealing with villagers for a long time (in bedrock), they need at least one bed you can even hide under the block or something and for workstation fix is bit tricky, you should remove all the workstation and place it somewhere and wait the particles indicate claiming and find villager that claim for that workstation then break it and place it to his front, repeat the process until all villager have workstation, after that you will rarely facing a problem like this again.
Keep in mind that pathfinding are not necessary for claiming but indeed for work/restock and sleeping