So, I wasn't able to directly reproduce this behavior, but I think I know what may have been causing it and reworked some of the logic that controls what happens when they get stuck or can't find a valid target to wander to.
I think what was happening was that they were failing to find wander targets, which caused them to move a couple tiles over and try again. But when searching for a new position to move over to, only water tiles were ignored, causing them to attempt to go onto other impassable terrain (overlooked during migration of mod to 2.0 - oops). I've changed that so now they shouldn't get nudged onto any tiles that the player collides with.
I really hope this resolves this issue - please let me know if it helps, or if your spiders are still acting up. I do not want the spiders to get damaged at all because of this mod, and I appreciate the report and your time looking into this.