Hi Naftalir,
The only adive I can suggest trying is to either increase your task stack size or monitor it to see if it overflows.
If you have TAD (task aware debugging) then halt and look at the heap to see if there is a memory leak and to check stack overflow.
If you do not have TAD, then you can periodically call:
void _tad_lightweight_memory_blocks(void)
and
void _tad_stack_usage(void)
Both in the PSP->PSP Generic->tad->tad.c
Regards,
David