Windows is Windows, and Microsoft is Microsoft. Extrapolation from those to anywhere else in the universe does not generate a plausible argument.
https://www.chromium.org/Home/chromium-security/memory-safet...
https://langui.sh/2019/07/23/apple-memory-safety/
these companies apply things like sandboxing and fuzzing to reduce the incidence of memory unsafety bugs, and yet they're finding a majority of their security bugs being memory unsafety. if you can't find memory unsafety in your c++ code, it's because your code isn't worth attacking.