SV Constraint Error Resolution

In reply to arpitg:

The previous reply was correct.

From section 18.4 of the LRM:
If a dynamic array’s size is not constrained, then the array shall not be resized and all the array
elements shall be randomized.

In this case, the array is of size 0, and since the size isn’t constrained, it remains 0 and you get no elements in the array.