HELP NEEDED Troubleshooting: CUDA error: Illegal address in cuMemcpyDtoH((uchar*)mem.host_pointer + offset

About 2 weeks ago my 3090ti started giving me problems when trying to render images in Lego Studio. This program uses a modded version of Blenders Eyesight opensource renderer. Everything’s been working fine for about a year, and a couple weeks ago I noticed the program would crash once in a while in the middle of renders. Now it freezes the second the program hits CUDA. I need someone way smarter than me to help me trouble shoot this thing. I have installed CUDA Toolkit 12.8, but I have NO CLUE what I’m doing… I don’t want to make things worse.
Thanks in advance for any help or suggestions :)

The CUDA error that keeps coming up
CUDA error: Illegal address in cuMemcpyDtoH((uchar*)mem.host_pointer + offset, (CUdeviceptr)(mem.device_pointer + offset), size), line 1147