Don't eat them. This happens occasionally and there's no way around it. The other clams, the ones that did open during cooking, are perfectly safe to eat. Don't try to pry the closed ones open though, just discard them.