Execution of a geoprocessing tool in ArcGIS Pro may leave a result in the geoprocessing history list that later prevents a Pro project from being packaged. An example is the IDW tool, which can be found in three toolboxes: 3D Analyst > Raster Interpolation, Spatial Analyst > Interpolation, and Geostatistical Analyst > Interpolation.
Even when the tool has run successfully, a subsequent attempt to package the project may produce an error:
"001795: Failed to consolidate project due to problem with Geoprocessing History item: IDW."
The most likely cause for the error is that the input data used in the tool could not be found; it was either deleted or moved from the original location where it was stored when the tool was run. For instance, if the input were a map layer that was deleted during the processing of data in the project, the tool's input data would be missing.