Write Edge in managed code
I know you've tried to GC the native code, but it's not enough.
There are still UAF bugs. There are still type bugs. It's time to put an end to them once and for all. Write in managed code. We know that Microsoft can create environments that are type safe; it's time to actually use one.