### Issue type

Bug

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

Yes

### Source

source

### TensorFlow version

tf 2.20.0

### Custom code

Yes

### OS platform and distribution

Kali Linux (kali-rolling)

### Mobile device

_No response_

### Python version

3.10

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Running tf.raw_ops.Unbatch() with very simple 1-D test inputs causes a native crash inside TensorFlow's C++ runtime.

Both stable TensorFlow (2.20.0) and tf-nightly abort execution with:

F tensorflow/core/framework/tensor_shape.cc:360] Check failed: d < dims() (1 vs. 1)
zsh: IOT instruction  python t1.py


This is a C++ CHECK failure → abort() → SIGABRT and terminates the Python interpreter.
There is no Python-level exception, which indicates a bug in TensorFlow’s internal shape handling.

### Standalone code to reproduce the issue

```shell
import tensorflow as tf

batched = tf.constant([1], dtype=tf.int32)
batch_index = tf.constant([0], dtype=tf.int64)

result = tf.raw_ops.Unbatch(
    batched_tensor=batched,
    batch_index=batch_index,
    id=tf.constant(0, dtype=tf.int64),
    timeout_micros=0
)

print(result)
```

### Relevant log output

```shell
2025-11-21 08:58:53.256574: E external/local_xla/xla/stream_executor/cuda/cuda_platform.cc:51] failed call to cuInit: INTERNAL: CUDA error: Failed call to cuInit: UNKNOWN ERROR (303)
2025-11-21 08:58:53.269244: F tensorflow/core/framework/tensor_shape.cc:359] Check failed: d < dims() (1 vs. 1)
zsh: IOT instruction  python t1.py
```