I suspect, but have not been able to confirm, that when doors and windows disappear from my plans, it is due to wall edits. That is, stretching or moving a wall in a way it does not like causes inserted PIOs to vanish. I can't define it much better than that because sometimes even a remote change will cause a problem.
I have not found a viable workaround, aside from vigilance and reduplication of work.