How much memory is allocated to your defaultTask in the <Tasks and Queues> tab?
Increase that number.
You are calling osDelay, that is going to put stuff on the stack. You can check the remaining stack allocation by calling uxTaskGetStackHighWaterMark(NULL).