New York City subway managers were warned four years ago to replace a rotten timber that crumbled from an elevated line onto a Brooklyn street in June, according to a track inspector’s report reviewed by The Wall Street Journal.

Pieces of wood fell from tracks running above Brighton Beach Avenue, a commercial corridor, on a Friday shortly...