A 35-year-old man is evaluated for recurrent headaches. For the past 5 years, he has had weekly episodes of headache lasting 6 to 8 hours. The patient describes the pain as a steady pressure affecting the frontal and maxillary regions that is exacerbated by physical activity. When severe, the pain radiates to the temples and occiput. He also experiences nasal congestion and sensitivity to light, noise, and odors with the headaches but has had no gastrointestinal or other neurologic symptoms. Potential headache triggers include drastic weather changes, strong odors, and stress. The patient also has allergic rhinitis. Medications are acetaminophen and fexofenadine, which have been ineffective in relieving the headaches and their associated symptoms.
On physical examination, blood pressure is 114/72 mm Hg and pulse rate is 66/min. Other physical examination findings, including those from a neurologic examination, are normal.
Which of the following is the most appropriate next step in management?