Generally, life finds a way to adapt. Just look at all the examples here on Earth were all sorts of organisms have found adapted to a very wide range of habitats.
I don't recall if there was any mention of conditions long prior to the dominance of the sand worms. It is possible that they took a lot of the water out of the primary ecosystem. The sand is mostly their waste byproducts and not the usual wearing down of rocks.