Aborted (core dumped) in `tf.raw_ops.SparseBincount`
@SuryanarayanaY I was able to replicate the issue reported [here](https://colab.research.google.com/gist/sushreebarsa/b62989f322e54bf8c02bc03dbad12c2b/66758.ipynb#scrollTo=pHh-zXQZBis2). Thank you!
### 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

Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.11

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Multiplication of `dense_shape` and `size` causes integer overflow

### Standalone code to reproduce the issue

```shell
import tensorflow as tf

binary_output = True
indices = tf.constant(0, shape=[3456,2], dtype=tf.int64)
values = tf.constant(-536870912, shape=[3456], dtype=tf.int32)
dense_shape = tf.constant([1250999896764,1250999896764], shape=[2], dtype=tf.int64)
size = tf.constant(305032608, shape=[], dtype=tf.int32)
weights = tf.constant(51, shape=[3456], dtype=tf.int32)
tf.raw_ops.SparseBincount(indices=indices, values=values, dense_shape=dense_shape, size=size, weights=weights, binary_output=binary_output)
```


### Relevant log output

```shell
2024-05-01 03:51:04.482001: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Encountered overflow when multiplying 1250999896764 with 305032608, result: -1
Aborted (core dumped)
```
