Placing an entity block somewhere keeps that information and the next entity block placed in that same spot will have weird behaviors.
See following attachments: My tests with chests in relation to other block entities
Linked issues
Attachments
Comments

Thank you for your report!
However, this issue is a Duplicate of MC-144469.
If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki