What is the optimal treatment or preventive therapy for the following condition: A 25-year-old female patient has experienced recurrent episodes of right-sided throbbing frontotemporal headache accompanied by vomiting over the past 5 years. Each episode lasts several hours and resolves spontaneously, occurring 2-3 times per month.