Identification of a link between splicing and endoplasmic reticulum proteostasis