Can a muscle spasm in the neck cause damage to the vagus nerve?

Unlikely. The vagus runs deep with the carotid and jugular.
Cancer, Interventions and surgery can damage nerves but would be very unusual for a muscle spasm to do harm.
.