I've seen this happen with a friend of mine during his PhD, working in a climate science department doing simulations of cloud formations at the molecular level. Some 2-3 years into his research he kept bumping his head against a model that wasn't producing the data the research team expected, he spent almost a year trying to contact the author of the paper where said model was introduced, wanting to get all the dataset and initial conditions the author used so he could replicate it. The author is a quite prominent professor in the field, working at a major British university and simply wouldn't provide it to the research team, datasets had missing pieces, he deflected multiple asks for the initial parameters of the model, etc.
In the end my friend uncovered that it was most likely faked data and to prove that was another year of a battle between heads of departments which led him to a complete burnout and to lose trust in science. It was such a hardship to endure, I saw him mentally and physically suffering, and questioning said professor reputation was way above my friend's paygrade and research efforts, it was a political nightmare and after he finished the PhD (as fast as possible without exploring all of his research's goals) he just dropped the case completely.
Academic research seems to be in such a mess, perverse incentives all around and very few are willing or even able to question bad science.