Caught a segmentation fault while loading plugin file: gstreamer-1.0/libgstnvcodec.so

Hi there.
It seems that since the latest NVIDIA Drivers update the libgstnvcodec is causing my app to continuously crash.

It crashes only when the pipeline is starting, once started it remains stable.
The weird thing is that once crashes there is no way to make it work again and I need to reboot the system.

ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvcodec.so

Problematic frame:

C [libnvidia-encode.so.1+0x3613d]

is there a known issue with pipeline like this?
pipewiresrc fd={1} path={2} ! videorate ! cudaupload ! cudascale ! cudaconvert ! cudadownload
video/x-raw,width=INTERNAL_SCALING_X,height=INTERNAL_SCALING_Y,sync=false,

this is weird crash with GStreamer when using CUDA elements for my pipeline, example:

pipewiresrc fd={1} path={2} ! videorate ! cudaupload ! cudascale ! cudaconvert ! cudadownload

This does not happen if I don’t use CUDA elements with a standard pipeline like this:

pipewiresrc fd={1} path={2} ! videorate drop-only=true ! queue ! videoscale ! queue ! videoconvert

the error I get when it crashes using CUDA elements is this:
ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvcodec.so
Problematic frame:
C [libnvidia-encode.so.1+0x359dd]

any idea on how to solve it or how to debug it? is was working well some time ago and my code isn’t changed.
so I don’t know if this is a new problem bringed by the new nvidia driver or the new gstreamer version…