welcome to HCM!
From your description, i am led to believe that the the 'lump' may be a posterior triangle lymph
node.The causes of lymph node enlargement are manyfold-ranging from inflammations to malignancies.
My advise to you would be to get a FNAC done and to consult a surgeon.
hope this will help in diagnosis and relief of headaches