`floating point exception` in `tf.nn.max_pool3d` when value of `ksize` is too large.
@xl1043237213,
It's not being killed because of TF. You are literally allocating so much memory that the OS is killing the process. It seems like you're giving large negative value for multiple arguments to the function. so due to Integer overflow to buffer overflow or due to insufficient memory (RAM), code is crashing or the process getting killed and I was able to replicate the issue on Google colab. Could you please specify the usecase where you are trying with the large ksize.

input:	A 5-D Tensor of the format specified by data_format.
ksize:	An int or list of ints that has length 1, 3 or 5. The size of the window for each dimension of the input tensor.

Thank you! Thanks for your response. : )
I found the problem with a self-designed fuzzy testing tool, and have not yet found a relevant application scenario that requires setting ksize to such a large value. However, when the value of ksize is accessible to the user, packed in the model, it can cause the program to hang or even crash. I was able to reproduce the issue on tensorflow [v2.15](https://colab.research.google.com/gist/tilakrayal/37b09ac521f769a066af3508d89fe44d/untitled1857.ipynb) and v2.16. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/7b52e2e87495521a3ac7b0a5b30919f9/untitled1858.ipynb).
### Issue type

Bug

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

Yes

### Source

binary

### TensorFlow version

tf 2.15

### Custom code

No

### OS platform and distribution

Linux Ubuntu 20.04

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

`floating point exception`  in `tf.nn.max_pool3d` when value of `ksize` is too large, which will cause a crash. This crash occurs in the CPU execution environment.

### Standalone code to reproduce the issue

```shell
https://colab.research.google.com/drive/1S9D9zdhknu9ReoPahd0_kw2OEuRxLAvB?usp=sharing
```


### Relevant log output

```shell
Floating point exception (core dumped)
```
