so your units have...decent pathfinding but they tend to get SUPER stuck in tight spaces. specifically those created by antoehr mod... squeak through. https://mods.factorio.com/mod/Squeak%20Through so this one creates a tiny space in between most solid objects so the player can squeak inbetween them. however units thhat get into these spaces have a lot of trouble getting out. i mean i'm fairly certain you can't even do anything about it and i'm not a modder BUT, if it were me i'd tell it something like "if the walking space is less than X , don't walk there."