Usually you're completely fine with the villagers burying corpses. You don't have to leave them on the sand. Just don't move your villagers for any reason while a burial is going on- THEN you could have some dissapearing issues!