Strangely enough, something similar had happened on the realm my partner and I share. We've had it happen now a few times:
1) I exited a nether portal, placed a bed, slept, woke up and broke the bed. I confirmed it was in my inventory, then logged out. Next day when I logged in, the bed was in my inventory but also respawned where I had it before outside the portal (duplicating itself)
2) Partner was wandering in desert between villages when he noticed a stretched/in-use lead sticking out of the sand but nothing attached. Walked closer and a boat with two villagers appeared on the other end - the exact boat and exact two villagers he transported along that route to the second village days ago (boat, lead, two villagers duplicated).
We are playing a Bedrock realm and each on separate PS4s. We have not tried playing locally to see if the issue persists.
This happened to me too (Bedrock realms, PS4). I lost two villagers that had been stable in their trading stalls for months. Nowhere near chunk boundaries, and no possibility of hostile mobs nearby.