I forgot to mention that another way to prevent precipitation is to replace the calcium nitrate with a chelated form of calcium. I base this on theory rather than personal experience. I would be surprised if the following formed a precipitate with magnesium sulfate:
https://hydro-gardens.com/product/ca...lbs-bag-ca330/