Chocolate contains stimulants theobromine and caffeine. I am not a coffee drinker, nor regular consumer any other stimulant, making me rather sensitive to the effects. If I eat chocolate, particularly dark chocolate, I reliably experience a mild stimulant high.
There's not really a difference between foods containing these molecules and oral drugs containing the same molecules.
And sure, chocolate gives a bit of a stimulant high. That's part of why we like it. This is something else. It unfortunately comes with certain kinds of chocolate.
IT is not known to be a headache trigger though, but there are known sensitive individuals.
Same with Ramen. I even experience muscle aching at times after eating it. It's a shame because I find it so tasty!
I avoid any sugared sodas these days, because I find if I am dehydrated and I drink a canned lemonade etc. I get a headache immediately afterward, with no lessening of my thirst. Plain water or coconut water works best for me.