I think I read this in middle school to high school, which places it in the mid to late 90s. It was in English. The protagonist was realizing that a particular office building, I think in the United States, had an unusually high fatality rate. He explained the concept of "sick building syndrome", a real-life condition where people who work in large buildings have a higher illness rate with the reason ranging from bad HVAC systems spreading mold and bacteria to fluorescent lighting causing our brains to not have normal chemical levels to the increased exposure to other human beings who feel forced to come to work even when sick because they can't afford to miss work. As he explores various mundane factors that might lead into the high rate of sickness and death, he starts to consider the possibility that the architecture was actively malevolent and, near the end of the story, as he tries to write up his results, he finds that the computer breaks down, pens break in his hand, etc, with the implication being that the building doesn't want him to warn others, and culminating with him trying to escape the building but finding himself feeling less and less well.
I don't remember if the protagonist survives. I've thought enough about how it might have ended that I have distinct memories of him surviving and of him dying in the process of trying to escape. I don't think that ghosts, curses, or magic were seriously considered by the protagonist. At first, he thinks it's something mundane. By the end of the story, he's convinced there's something more, that the building has evolved its malevolence towards humanity, or that some confluence of factors just means that the problem will keep getting worse. I don't think there was any sort of real antagonist behind it all, no evil artificial intelligence, vengeful first, sadistic architect, etc, just something that happened as a result of the building design.
Just to clear off a few likely candidates, it was an office building as I remember it, not a hotel, and the focus was on a general antagonism to humanity, not targeting any one person. Objects didn't fly around on their own. It was more of an... entropic attack, I guess. Things just didn't work right. People were ill more often, basically dying of "natural causes" instead of accidents. And it was definitely in an office building of some sort, of a modern build with multiple floors.