Chapter seventeen sorts food by the mind that craves it. At 17.9 comes the list for the restless, driven mind, rājasa: food that is bitter, sour, very salty, too hot, pungent, dry and burning.
The verse is blunt about the result. Such food causes pain, sorrow and disease.
Every Indian knows the feeling the morning after a plate of pani puri with extra mirchi. The Gītā wrote it down first.
Going deeper
Kṛṣṇa's account of food in chapter 17 comes in three verses, one for each kind of mind. 17.8 lists food that is sweet, oily, substantial and agreeable, and that supports long life, strength, health and happiness, dear to the clear mind. 17.9 turns to the restless, driven mind, rājasa, which likes food that is bitter, sour, very salty, very hot, pungent, dry and burning. The verse states the result in plain words: pain, sorrow and disease. It is not a rule about spice as such. It ties what a person craves to the state of their mind. Then 17.10 describes the food of the dull, heavy mind, the stale and the spoiled. Read in order, the three verses give a quick way to look at your own plate. The wider passage is in chapter 17.