To give another deviant a direct link to this FAQ answer, use the following code in your comment or forum post:
I received the confirmation code, but deviantART tells me it's invalid. What can I do?
Rarely the lost password process generates a batch of corrupt keys. If you suspect this is the case, please do not attempt to use the same key twice, as it will only state it is invalid a second time. Please instead wait 24 hours then request another confirmation code.
If you have waited 24 hours and you still experience this issue, please contact the Help Desk by email via email@example.com, for further assistance. Be sure to mention you have tried the step listed here or you will only be redirected back to this entry.