I would advise you to meet a neurologist to assess your condition physically and undergo investigations such as BP, S.
electrolytes, CT/MRI(if indicated). It is possible that the headache and vertigo that you've developed could be due to improper posture. Try to correct your posture while standing, sitting, walking and lying down and you could use a neck brace which may give you some relief. Kindly do get evaluated so that the underlying cause can be found and treated accordingly.