### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

tf2.17

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

2025-11-21 02:56:17.456814: I tensorflow/core/util/cuda_solvers.cc:178] Creating GpuSolver handles for stream 0x27254a0
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
F0000 00:00:1763693777.496048 1463725 cuda_solvers.cc:114] Check failed: cusolverDnCreate(&cusolver_dn_handle) == CUSOLVER_STATUS_SUCCESS Failed to create cuSolverDN instance.
*** Check failure stack trace: ***
Aborted (core dumped) # try > 3times

### Standalone code to reproduce the issue

```shell
2025-11-21 10:52:26.283899: E tensorflow/stream_executor/cuda/cuda_driver.cc:1157] failed to enqueue async memcpy from device to host: CUDA_ERROR_INVALID_HANDLE: invalid resource handle; host dst: 0xc10b7a40; GPU src: 0x7fadf7e00000; size: 16=0x10
2025-11-21 10:52:26.283927: E tensorflow/stream_executor/stream.cc:320] Error recording event in stream: Error recording CUDA event: CUDA_ERROR_INVALID_HANDLE: invalid resource handle; not marking stream as bad, as the Event object may be at fault. Monitor for further errors.
2025-11-21 10:52:26.284020: F tensorflow/core/common_runtime/gpu/gpu_util.cc:303] GPU->CPU Memcpy failed
Aborted (core dumped)
(FreeFuzz) zhourongkui@supermicro:~/work$ cat /home/zhourongkui/work/2024/DLF_LLM/src1120/mutated_codes_tensorflow/tensorflow.linalg.lu_solve/2_1.py /home/zhourongkui/work/2024/
DLF_LLM/src1120/mutated_codes_tensorflow/tensorflow.raw_ops.SparseDenseCwiseMul/1_0.py
import tensorflow as tf
lower_upper = tf.constant([[3.0, 1.0], [0.0, 2.0]], dtype=tf.float32)
perm = tf.constant([0, 0], dtype=tf.int32)
rhs = tf.constant([[1.0, 0.0], [0.0, 1.0]], dtype=tf.float32)
solution = tf.linalg.lu_solve(lower_upper, perm, rhs, validate_args=True,
    name='solve_linear_eqn')
```

### Relevant log output

```shell

```