I suspect you have adjusted the parameters of one of the doors(?) in such a way that it is now an invalid or impossible shape. Check you haven't set a dimension of a component to 0.000 for example.
To locate which object is incorrect, try deleting each door/window individually (and then undoing) until the error message stops.
It is also worth checking you have the most up to date library too.
It may be useful in future to put your ArchiCAD version and OS on your signature, as advice can differ for each version.