Static memory allocation in ipc4_to_str function