A bunch of built in controls allow for negative values that cause
Thread failed: System.OverflowException
at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_array_new_specific(intptr,int)
Interlink is the first one that springs to mind.
Add guard code in the Generate (or whatver)