Curvature-induced geometrical frustration in magnetic systems