Frequent spasm in neck muscle can occur due to repetitive overloading of weak muscles !! Muscles can get weaken with improper posture !! You need to relax these muscle and simultaneously strengthen them as well !! You may opt for
vitamin E and magnesium supplements for better muscle recovery !!but first you need to see a physiotherapist for better assessment and guidance !!
Next Steps
Hot fomentation over painful spasm areas for 20-30 mins and shoulder/neck mobility exercises
Health Tips
If you are in a sitting job profile please look for ergonomic design for your work place