ggml : address integer overflows in binary ops CUDA implementation (#24706)
* ggml : address integer overflows in binary ops CUDA implementation
* ggml : add size_t casts to avoid integer overflows
* ggml : add more asserts checking integer overflows in binary ops CUDA implementation
---------
Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>