@nalluri , I am glad my suggestion helped in resolving your issue. Honestly, this issue happened to me in my current and previous projects and the solution is based out of my experience using AEM.
Underlaying root cause: As per my understanding, Apache Sling GET Servlet is the main servlet which handles all the GET requests made to the AEM primarily. Of course, other Referrer filter and rest of the configurations also process the request but Apache Sling GET Servlet plays a significant role in processing all the GET requests.
In the Apache Sling GET Servlet, the OOTB configuration to the maximum number of resources that should be returned when doing a node.5.json or node.infinity.json (_jcr_content.0.json) in case of pages is set to 200 as default value.
On any page, when you keep adding more components, the # JSON objects built to render the page goes up and reaches the limit of 200. I think that might lead to stackoverflow issue but I am not sure though. Increasing the value of json.maximumresults property in the GET Servlet configuration helps to create a JSON with higher number of JSON objects and return the JSON back to the browser for component rendering.
This observation based on my analysis.
Thanks,
Sudheer Sundalam.