The limit is 365. It is set in fdmprinter.def.json, but I discourage you edit that file because (1) it affects all printers, and (2) you have to make those edits again if you ever reinstall Cura or install a new version. The better option is to override the maximum in the printer definition you are actually using (provided you are not using a "Custom FFF Printer").