If all targets of Crashing Wave become illegal before it resolves, the spell will not resolve at all and you will not distribute any stun counters, even if the opponent still controls some tapped creatures.