You get that error when you're changing the entity of a brush that's already tied to an entity... To fix this, Go to Map>Entity Report and press on one func_wall and then "go to". Now the object should be selected but if it doesn't select anything and just views the middle of the map you should delete that entity. Do the same thing to find the other func_wall and then you're done!