How to handle a struct initialization in systemverilog

In reply to chris_le:

The size is not determined for the verification purpose actually…

and I pasted all related code so may I know how to allocate the dynamic array ?