The problem is pervasive enough that I posted a script to look for this and find the limit count where an API call would avoid the error (like you would have written) - 18 days ago.
The case there was so problematic for that developer that different “limit” inputs each gave wildly different results counts before ultimately discovering where a query completely broke the endpoint.
The beauty of “we use AI to push PRs when they seem to work” - nobody has ownership or knowledge of the code base, because nobody actually wrote it, the application slowly breaking down into unmaintainable slop the more AI you use.