This seems like it would be an issue for any studies relying on absolute food consumption being accurate. Most studies I come across frame their findings in relative terms (likely for this very reason): Individuals who engage in more of X compared to their peers show a correlation with outcome Y.
For example, if you’re trying to determine whether morning coffee consumption correlates with longevity it doesn’t seem particularly relevant if you believe everyone is underreporting their food intake, as the article implies; it's a relative comparison.
Sure, those findings often get twisted into clickbait headlines like “X is the secret to a longer life!” but that’s more a popular science problem than an issue with dietary research itself.