This is because of upper GI bleeding
And may include other causes like inflammation, tumor any medication which contains iron or bismuth , and peptic ulcer.
First of all you have to consult with a gastroenterologist, if the patient is alcoholic then avoid alcohol as much as possible, avoid spicy, oily and fatty food. Get usg or
Next Steps
upper GI endoscopy and stool occult blood