Why Do Sweets Give Me Heartburn, Avoiding certain foods may help prevent heartburn.