Microsoft MakeCode

"844" GC errors

I am having trouble getting an extension that I wrote mainly under version 1 working under version 2.
I am getting the error message 844 “GC allocation failed for requested number of bytes.” when i upload to the micro:bit

Here is an example:

If I omit some portions of of the code in the extension, it runs, regardless of what is omitted and what is left in, It seems the garbage collector just wont handle all the code being left in. What is the limit ? can I disable the garbage collector ? What exactly causes this error message ? Is it a bug or am I using too many variables or too much memory for v2 of makecode?

It works fine in v1.