@Loek van Vucht, no It was a single-player Java world
It just happened to me in 1.15.2. I didn't get stuck but the door sliced in half like that and I couldn't get through. Fence gates were acting up as well.
At first, I had this problem in a creative world, but not in my survival world. Then recently the problem started happening in the survival world too. I don't know why it has only recently started happening in the survival world but it's been causing a lot of problems in my trading hall.
I'm playing in 1.15 and I had this problem with player-made iron golems.
Still having this problem in 1.16.1.