read error: "end of file"
**Describe the bug**
When i use Xmrig i get read error: "end of file"

**To Reproduce**
Start Xmrig linux with `./xmrig --cuda -o stratum+tcp://sha256.auto.nicehash.com:9200 -u 3EwSHpA4SCeQwwcecdpoFjBwtZzjQ6Vmni --tls --nicehash -o stratum+tcp://sha256.auto.nicehash.com:9200 --rig-id 3EwSHpA4SCeQwwcecdpoFjBwtZzjQ6Vmni --tls`

**Expected behavior**
It should start mining towards my nicehash stratum

**Required data**
 - XMRig version: XMRig/6.21.3 gcc/11.4.0 (built for Linux x86-64, 64 bit)
 - Miner log as text or screenshot:
```
 ~/Appimages/xmrig-6.21.3$ ./xmrig --cuda -o stratum+tcp://sha256.auto.nicehash.com:9200 -u 3EwSHpA4SCeQwwcecdpoFjBwtZzjQ6Vmni --tls --nicehash -o stratum+tcp://sha256.auto.nicehash.com:9200 --rig-id 3EwSHpA4SCeQwwcecdpoFjBwtZzjQ6Vmni --tls
 * ABOUT        XMRig/6.21.3 gcc/11.4.0 (built for Linux x86-64, 64 bit)
 * LIBS         libuv/1.48.0 OpenSSL/3.0.13 hwloc/2.10.0
 * HUGE PAGES   supported
 * 1GB PAGES    disabled
 * CPU          AMD Ryzen 7 7700X 8-Core Processor (1) 64-bit AES
                L2:8.0 MB L3:32.0 MB 8C/16T NUMA:1
 * MEMORY       5.8/30.5 GB (19%)
 * DONATE       1%
 * ASSEMBLY     auto:ryzen
 * POOL #1      stratum+tcp://sha256.auto.nicehash.com:9200 algo auto
 * POOL #2      stratum+tcp://sha256.auto.nicehash.com:9200 algo auto
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         disabled (/home/arun/Appimages/xmrig-6.21.3/libxmrig-cuda.so: cannot open shared object file: No such file or directory)
[2024-04-26 20:10:41.854]  net      stratum+tcp://sha256.auto.nicehash.com:9200 read error: "end of file"
[2024-04-26 20:10:46.422]  signal   Ctrl+C received, exiting
```
 - Config file or command line (without wallets): `./xmrig --cuda -o stratum+tcp://sha256.auto.nicehash.com:9200 -u 3EwSHpA4SCeQwwcecdpoFjBwtZzjQ6Vmni --tls --nicehash -o stratum+tcp://sha256.auto.nicehash.com:9200 --rig-id 3EwSHpA4SCeQwwcecdpoFjBwtZzjQ6Vmni --tls
`
 - OS: [e.g. Windows] KUbuntu
 - For GPU related issues: information about GPUs and driver version: RTX 4070 Ti Super, drivers latest from ubuntu-drivers