Yikes, that's a lot of pots to deal with... but I think I would start with a few and wash as much soil from the roots as possible and then repot, to eliminate as many of the cocoons as possible. Sounds crazy to have so many worms that have invaded the pots, but it is what it is -- maybe your potting soil originally contained earthworm cocoons? If you have an in-ground garden, I'd definitely save the soil and add it to the garden; or, if not, there are a lot of gardeners that would be thrilled to have all those worms! Definitely sounds like a mess to have them wrecking your potted plants, though