There's no exact corresponding term to 'nostalgia', one that captures a vague memory of feelings in the past, but negative instead of positive.
However, there are multiple words that come close and fit well within your pattern.
The most likely one is the noun
regrets - worries over past action.
or essentially bad memories of past actions (nostalgia usually doesn't concern primarily actions, while regrets do).
But in your example sentence, the bad memory is about a past action:
"This burrito is good, but I don't think I can finish it, it's making me regret that time I ate a burrito and got food poisoning."
(used here as a verb, but could be reworded to say "... making me have regrets about that time...").
There are other synonyms that are further away: remorse, heartache, misgivings, lament, qualms. Note that 'nostalgia' is given as a synonym of 'regret', but I don't naturally associate 'nostalgia' with negative memories so I question its use for both positive and negative.