JSON String and API - MaxObjects Limit

Hi,

I’m working on a digital twin projects and I’m facing an issue that is crashing my occulus app.

I have an API call that contains information around the color for around 1000 objects that I want to update every couple of seconds.
Basically I want for unreal to use a VARest plugin and fetch the RGB value and update my material.

I seem to be able to run it in my editor correctly. When I compile it for the Meta Quest 2 I keep getting
Maximum number of UObjects (196608) exceeded, make sure you update MaxObjectsInGame/MaxObjectsInEditor/MaxObjectsInProgram in project settings.

I think the issue lies with the fact that when reading the API I’m running a for each loop that is createing an objects. So when I run obj list i can see that there is a lot of objects in VaRestJsonValue 2,421,102

what would be the best way to optimise this?