That error indicates that it's a promotional code.
Promotional Xbox LIVE Gold (and Game Pass) codes do expire, even when there's no clear indication of an expiration date.
Thank you. I will check with CD Keys to see if they can help. I wasn’t aware these were considered promotional.