This is probably related to [Bug] Buildings wont have walls
I’m not sure if it’s intended that you’re allowed to edit / add adjacent things while a building is being constructed. But if it isn’t, it’s definitely a bug and / or an enhancement needed on the UI / system to prevent this situation at the moment.