need to fix a problem in puppeteer script in node-js (promise-all)- urgent

Job ID: 35074325

Budget: ₹100 – ₹400 INR

I have wrote a script that fetch product urls from the first page of the website and then go to each url one by one and fetch details from product page using "promise_all" but it taks all the urls at one so when i put pagesize 24 it works perfect but when I put 300 it got stuck .. first try to run attached script yourself then you will be able to understand what's my exact problem