Superlattice switching from parametric instabilities in a driven-dissipative Bose-Einstein condensate in a cavity