"error too many vertices"

I am working on an architectural structure and I am getting the message “error: too many vertices”. How can I resolve this. I can’t tab out of edit mode or make any other changes. Any advice appreciated.

split the mesh on parts.

Select some parts in Edit mode and press P.

Martin