Is there a word to describe a compulsion to eat a particular food, or the food item itself?

There is no single word for this.

If it's a need, but more emotional than either a physical craving or intellectual reasoning, then it might be termed a food fetish.

[Merriam-Webster]

1 b : an object of irrational reverence or obsessive devotion : PREPOSESSION