QSAF: A Novel Mitigation Framework for Cognitive Degradation in Agentic AI