I just got this error while trying to run a Hot Spot Analysis (Getis-Ord Gi*) tool on a roads feature that was spatially joined to crashes. I kept getting this error. What fixed it was redoing/re-exporting all the layers that led up to your input feature class. And if you have a network dataset, make sure to use that same line feature used to create the network.
Restarting the workflow and overwriting your layers might be a good first step if you come across this problem. It seems like it is a bug. there is little documentation about this error.