I have this issue in 1.16.4. Villager correctly bound to the work site but wouldn't bind to the bed, and just wonder around at night.
I checked in the save file and villager still remembered a bed that was destroyed long ago and was hundreds of blocks away.
When I made a backup and modified the save to delete this old bed from his memory he correctly bound to the new bed on the next night. I still have the bugged backup.
I have this issue in 1.16.4. Villager correctly bound to the work site but wouldn't bind to the bed, and just wonder around at night.
I checked in the save file and villager still remembered a bed that was destroyed long ago and was hundreds of blocks away.
When I made a backup and modified the save to delete this old bed from his memory he correctly bound to the new bed on the next night. I still have the bugged backup.