You just need to wait a little longer for the SMS to arrive because it will arrive eventually. Also, if you still encounter the error, just install WhatsApp again and use the same phone number. You can use it until the moment you actually enter the code into the activation window.