Cuda different errors CudaErrorIllegalAdress, cuda segmentation fault, error: destroying cuda device: 0

am working on the following machine:

Processor: Intel Core i7-8750H 
Memory: 16 GB RAM 
1000 GB | 5400RPM | SATA | -,
256 ssd
GPU: NVIDIA GeForce GTX 1060

My deepstream version

DS: 6.1
Driver Version: 515.76
CUDA Version: 11.7

I’m working with deepstream imagedata multistream with adding some integration with redis to add or delete the RTSP streams (using add-remove streams sample) and kafka-python,

The models been used are (primary: resnet10 and Nvds tracker)

After running the code with 1 RTSP stream for X time (where X is different each time but it’s usually more than half hour), I got those different errors at the below screenshoots, kindly advice me what should we do to make that code running 24/7 with 1:30 streams

I already post this at deepstream section and they refer me to here