It seems from the history that you are having headache which is periodic with nausea and eye pain. These symptoms indicate primary headaches
. This is not related to the unprotected sex which you had about 2 weeks ago.
The treatment of the condition is by use of analgesics and anti-inflammatory drugs in the acute phase.
Since you are having periodic recurrences, you may require prophylactic drugs to prevent the recurrences. The commonly used prophylactic drugs are flunarizine
or beta blockers like propranolol
Hence I advice you to consult your doctor for examination and treatment accordingly.