I found the problem number in the Java version, it is in the screenshot:
[media]I don’t remember exactly which Java snapshot solved this problem, but since 1.16 pre-release 1 there is definitely no such problem. Also, I want to say that I figured out the problem: one villager could not sleep because he did not see the bed, because it was very high (about 25 blocks high), and another villager for the same the reason I could not find the bed, the bed with which he was close - was not his, and the other was too high. This problem can be considered resolved.
Maybe this is a bad generation of the world, because the houses of some villagers were located on a hill, and they could not reach them and therefore stood on the street. But why did the villager not want to change the bed and choose the one that is closer if it is impossible to get to the bed he wants? It seems that I found a solution to the problem, we need to make bridges to the villagers and everything will work fine. But still, it is not very pleasant that the villagers can not choose another affordable bed. Or do we have to wait a little longer for the villager to move to another bed?
@GoldenHelmet
It seems that the peasant priest did not enter his home. But some villagers stand on the street without moving, although a bed is available.
I found a report similar to MC-157077, and as far as I understood, it says that there are villagers who do not sleep under any circumstances, even if the bed is in front of a villager, right? Can't it be that these are 2 identical reports? MC-149576