When following redirects is enabled, #curl will follow up to 50 redirects by default. There's a maximum limit mostly to avoid the risk of getting caught in endless #loops.
If 50 is not sufficient for you, you can change the maximum number of #redirects to follow with the --max-redirs option.
More Info >>
https://ibmimedia.com/blog/87/solution-to-curl-maximum-redirects-followed