You have to find ways to assassinate Yang Guang before he became emperor. As an emperor, he alienated government bureaucrats, peasants, merchants and military. He had no patient for planning and implemented his insane projects without risk assessments. When land became dry, he refused to send relief to famine districts.
If his old brother had ascended to the throne without his opposition, the Sui Dynasty might last as long as Tang Dynasty.