Stability interchanges in a curved Sitnikov problem