Successive switching among four states in a gain-loss-assisted optical microcavity hosting exceptional points up to order four