Some risk factors are unavoidable, but adjusting your patient's diet and addressing comorbidities can prevent excruciating episodes.