I've only had engaged units fall off the wall. The only other case is if they are getting shot at occasionaly they will fall to thier death but that man is already dead. I do'nt think walls have a problem it's body's of water where the problem comes from.

Now there is a siege tower bug where all the men jump to the ground instead of onto the wall and that will be fixed in a future patch