Code stopping with text "Killed"?

I encountered the same issue. When you said it took up too much resources, are you referring to the GPU?