Atrial fibrillation is not a type of heart failure but it can lead to heart failure. If the heart beats too fast for too long, that can cause the lower pumping chambers to fail, and that can cause fluid to retain in the lungs and swelling in the legs — all the symptoms that we would typically associate with heart failure.