It's great that you're still working on it. I have tested your version. It crashes for me at a depth of 40.
ExecutedProcessWriteToStandardInput(global.pid, "go depth 40\n");
I'll get in touch with you via Discord when I get a chance.