Before I start I'm gonna say that this only happens on my 600mb world and my pc isn't the most powerful so it could be my pc and not Minecraft
I found a bug that every time you sleep all mobs stop moving and you cant interact with them like villager trading or sitting a cat
I first thought it happens when you wake up a villager but then I realized that it happens when you go sleep I have no idea if only I'm getting this problem but it could also be my pc
let me know if you find something or if its just my world that's maybe corrupted etc.
Does MC-213788 describe your issue?