While pregnant, mild headache prevention may mean avoiding certain triggering foods, smells and noises. Light physical activity, such as walking, may help. Practice deep breathing and relaxation techniques, and try to keep a regular diet and sleep schedule. Before taking any medication containing aspirin, such as Excedrin, consult a doctor first.