
Apex Token Jobs cannot be aborted. To know more about Apex Token Jobs, check the following article:
https://help.salesforce.com/s/articleView?id=000338931&type=1
To avoid or fix the issue, don’t use System.abortJob() for the AsyncApexJob of JobType ApexToken.
Sample SOQL:
SELECT Id
FROM AsyncApexJob
WHERE Status = 'Queued' AND JobType != ApexToken