1 Red blood cells (RBCs) are also called erythrocytes. They make up almost half of blood. Red blood cells are filled with hemoglobin. That's a protein that picks up oxygen in the lungs and brings it to cells all around the body.  White blood cells (WBCs) are also called leukocytes.
Pain originating in the stomach or esophagus is often felt in the upper abdomen and can be due to heartburn, gastroesophageal reflux disease (GERD), or hiatal hernia (weakening in the diaphragm that allows the stomach to protrude into the chest). You may also have gastritis (inflammation of the stomach lining) or ulcers.
Formed stool was also found in my instestine. The same can cause bloating, gas, acidity and hence upper abdominal pain. You can stop this diet and take your normal diet and see if the stool color and consistency returns to original. If this is the case, then the upper abdominal pain will also go. Other than this, yes, pancreatic dysfunction and inflammation can cause stool changes along with upper abdominal pain.