This happens with villagers and their workstations
When you destroy a workstation that has already been placed and then wait for the villager to walk over the place where you place it, then the block immediately gets destroyed and you have to save and reload the game to get the item back.
Related issues
Comments

Duplicate of MC-163637.