If you managed to get a domain name you really like, you might feel like you want to keep it forever. Unfortunately, in addition to the fact that an infinite renewal would probably be super pricey, domain name registries limit how many years you can renew your domain name in advance. For most domain names, like .com, the limit is ten years. Other domain names have different limits. For example, the .io registry only lets you renew for one year at a time.
If you’re trying to renew your domain name for multiple years and the transaction is failing, it may be that you’re trying to renew it for more years than the registry allows. Try the renewal again with fewer years, or just one year, and see if the transaction goes through.