Error CUDA_ERROR_NOT_FOUND inside cufftPlan1d

I ran simpleCUFFT in the CUDA 11.4 sample project and got the profile with Nsight Compute. I found CUDA_ERROR_NOT_FOUND during cufftPlam1d.
Is this a bug caused by CUDA? I am in a situation where I cannot update my CUDA version. Please let me know the proper solution.

Also, if I use cufft64_10.dll in the CUDA 10.2 folder, I don’t see the error anymore. Is it safe to use this?

Here is my environment
CUDA 11.4.1
Nsight Compute 2022.2.1
Visual Studio 2017