Some websites claim that panic attacks might be caused by hypoglycemia, excessive caffeine, or a calcium or magnesium deficiency. They recommend eliminating sugar, alcohol, caffeine, and high carbohydrate foods, and eating 6 small meals a day rather than 2 or 3 large meals.