Thank you for posting your query.
Based on your symptoms, it appears to be due to spasm of muscles in temporal region of head. This is not a serious condition, and it improves with medications.
or overwork can aggravate this condition.
For pain relief, you can take analgesics such as ibuprofen
Wishing you good health,
Dr Sudhir Kumar MD DM (Neurology)
Apollo Hospitals, Hyderabad