Modern languages - even those that have high levels of C interop like Zig - can (and do) avoid those problems.
I do agree that some of the UB is a problem though.
I think the jury is out on Zig and Odin (but I like Zig a lot, in particular), but I feel Rust has hit a tipping point - like Go, Python and Java - where there's too much production code out there for it to disappear in the next ten years.
If you were to ask me about languages where that might not be the case in ten years, I'd point to where usage is not very production oriented (R, Julia), or where people have had a good try and decided they want to pull back investment (anecdotally, Ruby and Scala seem to be on that curve right now).
Though I suspect it’s fair to say the entire settlement is built of glass houses here :-)
https://news.ycombinator.com/item?id=43798312
I suppose if one wants absolutely no surprises, they will need to lock the entire toolchain as well, regardless of the language…