There is no free memory on the micro:bit. Your program might be too complex or contain a lot of large variables. 


Try reducing your code by making functions out of large sections. If this does not fix the issue, try and find the shortest reproducer of the issue (the smallest bit of code that exhibits the problem) and create a support ticket with the program link or .hex file attached.