"Unable to enqueue AsyncApexJob for finalizer: Attached Queueable job has hit the maximum retry limit of 5." Exception in Salesforce

If you are using Finalizer in the Queueable job, this exception is thrown when the retry limit exceeds more than 5.

For Developer Edition and Trial organizations, the maximum stack depth for chained jobs is 5, which means that you can chain jobs four times and the maximum number of jobs in the chain is 5, including the initial parent queueable job.