I think I’ve gotten this error before
Were you trying to edit a prefab?
If I remember correctly, it popped up when I tried changing the log walls to plaster ones on a prefab building. Couldn’t build anything else after that.
Does it go away when you reload the game?
I’ve had the building tool permanently break during some slab-related shenanigans, but I don’t know what caused your problem.