Bad Request 400 - axios REACT js THROWING EMPTY ARRAY

Hello,
I got one problem with the moralis API if i run loop for on wallet to get assets address and call for price on that address. you know there is a lot of dust Attack on wallets if I run the loop and there is token(scam) then the moralis throwin error 400 , but the problem is when the loop ending with the error then it the array what i got is empty if the loop not ending with the error then the array is filled with the data and everyting is ok and work fine can you guys some on help me to figure it out ? thanks a lot

it sounds like some problem with the implementation of that loop