CTRAP: Embedding Collapse Trap to Safeguard Large Language Models from Harmful Fine-Tuning