It depends. Sorry for being vague, but it depends on the environment they are in. The mountain pine beetle can last two, three, four years and even longer in drier conditions. Obviously, the quality deteriorates. The mountain pine beetle also has a fungus that stains the wood, so the quality of the lumber deteriorates as well.
On September 25th, 2018. See this statement in context.