OCaml (the language I use in the post) is an extremely memory safe language, but there are plenty of higher level logic issues that spring up.
LLMs are extremely good at finding corner-case vulnerabilities in C bindings even within a memory safe language; see for example the fixes in an OCaml crypto library here: https://discuss.ocaml.org/t/the-series-of-mirage-crypto-rele...