Sometimes villagers just stand on the bed, and this villager won't leave this bed or try to move(And he is not sleeping,just stand on the bed. i also notice mobs won't move when they're between The fence and trapdoors or when they're on top of the bed) ,you need to destroyed the bed to let him out of this situation :/
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue at MCPE-38693, so we will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.