Villagers cannot seem to pathfind to beds at night or to safety in general when being chased by a hostile mob such as a zombie.
Villagers cannot seem to pathfind to beds at night or to safety in general when being chased by a hostile mob such as a zombie.
This is most likely due to their "panic" task which takes priority over other tasks when they are being hunted by a mob. Could you provide some more information on the issue such as screenshots with F3 open, and a video of the issue occuring?