Build a giant wall with you're infinite legos that'll stop them
and if that doesn't work turn into a roosterroach and burn them all to hell. i don't think there's any way to stop these critters even decapitation can't instantly kill them so you're screwed.