I got it!
The problem was caused because recently I changed the taxonomy for all the products and some products related with cancelled orders do not update their name. So when the API call looked for the name of a product inside a cancelled order do not found it and returns an error.
Simply I deleted all the cancelled orders with old product names and all works perfectly.