Hello and welcome to HC!
I wouldn't really worry about it to be honest, sand is safe to ingest in small amounts. Think of it this way, your hamster would be ingesting some while grooming anyways! It would only be a problem if he was taking mouthfuls of the stuff. Best wishes