Find the exact failure
Use a phone camera to inspect the destination before opening it. Record whether nothing is recognised, a link opens, WhatsApp opens, or a message is actually sent. These are four different steps.
If the destination is a shortened or redirected link, inspect each step using your authorised tools. An expired redirect service can break a printed code even when the WhatsApp number remains valid. Do not replace the number until you know which step failed.