segmentation fault when tf.histogram_fixed_width receives large `value_range` and `nbins` on CPU mode 
### Issue type

Bug

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

Yes

### Source

source

### TensorFlow version

tf 2.16.1

### 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?

When setting the `nbins` to a large value and the value range to [-np.inf, np.inf], the API `tf.histogram_fixed_width` will raises a segmentation fault.
Interestingly, I found this issue only occurs on CPU backend while this API works fine on GPU.

### Standalone code to reproduce the issue

```shell
import os
os.environ['CUDA_VISIBLE_DEVICES'] = ''
import numpy as np
import tensorflow as tf
input = tf.constant([1.,2,3])
bins = 23
out = tf.histogram_fixed_width(input, [-np.inf, np.inf], nbins=bins)  # Segmentation fault (core dumped)
print(out)
```
```


### Relevant log output

_No response_