Sand normally is not an issue as it helps aid with the digestion by acting as a roughage for indigestible foods. Rocks on the other hand, are another issue. How can you be sure your fish is swallowing rocks? You cannot do anything about it if your fish swallowed rocks. Only way is wait for it to purge it out or perform surgery (which is inadvisable unless you know how to handle this).