The Transport Delay block pre-allocates a buffer based on the simulation stop time. When the stop time is inf, it cannot allocate the buffer, so it fails to work correctly. Use the Variable Transport Delay or Variable Time Delay blocks, which do not rely on a pre-allocated buffer.
For more details you can go through the following documentation: