Resource Allocation for Stable LLM Training in Mobile Edge Computing