When villagers breed, the babies claim an unoccupied nearby bed. However, after the babies travel more than 200 blocks away from the village, the bed still remains claimed and the villagers will no longer breed unless the nearby beds are broken and replaced.
Can confirm that villagers far away from their beds will keep that location in their memory. However, if they find a new bed in their new location, they will claim that one instead.