I tried this and this is a bug in the game. As soon as the wall deals damage to the Demolisher, it crashes. However, the Demolisher is only on Vulcanus, so just don't build these walls there.
The bug has been reported, so hopefully it will be fixed in a future update.
I currently don't know how to add an exception to ignore a specific entity :-/