Add Transfer-Encoding: chunked and Connection: keep-alive headers to toUIMessageStreamResponse() when streaming fails in deployed environments.