Every night the same villager would walk in circles around the place where its bed was broken for relocation, walking in and out of its house repeatedly, this eventually got it killed, and then a newborn villager got stuck in the same place pathfinding in the same exact pattern.
This has been happening through all the pre-releases, up to the fourth, the affected villager behaves normally during the day, restocking, chattering and strolling as normal, also the village was started from two cured zombies if that matters.