Foam under a liner can INCREASE the chance of puncturing it, with small pebbles or stick in the pool. Better to clear the site well, and use a heavy duty tarp, cut to fit, under the pool instead.

Sand moves, if water moves it. If water doesn't run under/along the pool, it isn't necessarily an issue.