Effects of curved superconducting magnets on beam stability in a compact ion therapy synchrotron | Synapse