To prevent bleeding in the future, health care providers treat the disease or medical conditions that cause bleeding. Diseases that can be treated include:  H. pylori and other infections. GERD. Ulcers.