Could not run the sketch (Target VM failed to initialize). Kinect V2

Hi, I’m getting this error when I run the examples from the OpenCV_Processing library with a kinect V2.

“Could not run the sketch (Target VM failed to initialize).”

I’m using
Windows 10 Pro 64-bit
Intel® Core™ i7-9750H processor Hexa-core 2.60 GHz
NVIDIA® GeForce RTX™ 2060 with 6 GB dedicated memory

I’ve seen that it may be a nvidia issue but i’m very new to windows so i’m not sure.
Any help would be appreciated! Thanks!