Chromosomal duplication is a transient evolutionary solution to stress