vfxgraph – UNITY – VFX Graph ParticleId issue

So I am trying to create a uniform 2D particle grid with VFX graph.
I simply calculate some X and Y coordinates based on the ID attribute of each particle and the size of the grid:

int x = particleId % gridWidth;
int y = particleId  /  gridWidth;

Here is the graph I use to do it:
enter the description of the image here
Produces the expected result for grids of size less than or equal to 64 * 64.
However, as soon as the grid size exceeds 64, the grid flashes and some random points are missing in each frame:

enter the description of the image here

I have no idea what's going on, can anyone help me? What am I doing wrong here?