SPARC: Subspace-Aware Prompt Adaptation for Robust Continual Learning in LLMs