Copying Queues to Dynamic Arrays
As @dave_59 said, the problem is due to using a simulator in which the function is not supported.
Reading the error message gives us a hint:

Error: design.sv:19: sorry: Streaming concatenation not supported. Exit code expected: 0, received:

The first error is on line 19, and the error message is &quot;Streaming concatenation not supported&quot;. This suggests that the line of code might be valid in SystemVerilog, but is not supported on that simulator.