It seems from the history that you are having sharp pains in the temples of forehead.
This can be caused by various reasons as a part of primary headaches
like migraine, cluster headache
, tension headache
or vascular headaches like temporal arteritis
and in other causes which lead to headache like sinusitis
This requires examination to find out the underlying cause and treatment accordingly.
Hence I advice you to consult your doctor for examination and treatment accordingly.