In regards to your question, it does not seem to be an issue with Intel Curie itself but with your code and the Arduino 101 memory available for sketch, for that reason I encourage you to post your question in the Arduino 101 forum: https://forum.arduino.cc/index.php?board=103.0, as they are in charge of this support and might be able to provide you a more accurate answer.