I feel pleasure to interact with you, being a medical student.. It would be convenient if you could mention the complete case history. Anyhow, I may prescribe you to pay attention on dietary habits and lifestyle to enable yourself rectify yourself being a medical student. You can also check for cervical spondylitis if you have because of over-studying. See if hot and cold fomentation on the back of the neck can help you to alleviate pain. You can practice bhujangansa for 15-20 seconds for three rounds. I would be able to give you complete details only if i would be able to get the complete case history.