I'd do an experiment: take a pinch of the sand, but it in vinegar (or add a couple drops of stronger acid) & see if it reacts. You know, the 'is this rock limestone?' test. That's where I'd start, anyhow. Also, have you tested the rocks? Maybe they didn't affect the pH in a larger tank, but...