Update tee_ta_manager.c

avoid stack and heap overlay when stack_size+heap_size>1MB-sizeof(param->params)