Original: The years of the Sh gen era was in a period marked by famine and epidemics; and the era name was changed in quick succession in the hope that this might bring them to a close.
Simplified: The months of the Sh gen era were times of famine and epidemics.