I've seen a worm similar to what you are describing I think. I ended up catching it. I'm not positive if it's the same thing but I would say it's probably harmless. Most small worms in this hobby are just little detritus scavengers and such that won't harm your other livestock at all. Do you recall any specific features of the worms that may help ID them aside from their corkscrew swimming pattern?