Your computer RAM is not powerful enough to run your code. sometimes you can solve this issue by changing your code. for example, try to remove nested loops, and replace them with codes that work on arrays. also, try to break large matrixes into smaller ones so that computer can hold them in memory. Delete used variables from the memory as soon as you don't need them anymore.