Also, when you do want to use a cliff as wall, place a cornerpost sign next to the cliff you want your wall to be attached to. This way you can test if there's a gap between cliff and wall. If there is one, remove the sign and try another spot.
But yeah, better just don't use cliffs as walls.