We have to check the field available for all the item types when we use the item search API in the code.
For example: If the field custitem1 is not used for non-inventory item type so we have to make sure that we should add the condition for using the item search API, else the data may show the error for fetching.