This isn't really possible. Dire Claw was not the only move with a secondary effect that has a percent chance to put the opponent to sleep. Relic Song, for instance. Effect Spore has a random chance to put the opponent to sleep. Under this clause, rather than simply having the effect not occur if it's rolled, you instantly lose the game from something out of your control. These are niche cases to be sure, but they are 100% possible in SV OU and need an answer. Not to mention the possibility that this would set precedent for future generations where even more stuff like this could be added.
I see utterly no reason not to just ban these specific moves/abilities, at least. Meloetta sees basically no usage in OU, and everything that gets Effect Spore gets a better ability that it almost always runs instead.
If it becomes a problem in the future, then we can re-evaluate. The only reasonably futureproof approach that solves all the issues that have been raised is to simply ban all Sleep moves, presumably including moves with Sleep as a side effect.