If you are passing blood it is likely from the colon, if it is red blood.
Blood in the stool from the stomach is tarry.
You need an immediate exam from your doctor.
Passing blood is not a self help situation.
A number of problems, ulcer, diverticulosis, cancer...can pass blood.
Some can bleed out.
You should have had two colonoscopies for screening by now, if not, this needs to be arranged.
OK, so that is an initial answer….
Please use reply to expert if you have further questions. When you are ready, please click a positive rating [hopefully excellent]. If you forgot something, come back. I am here daily.