hi i had gone through your query and understand your concerns. i would come up with the possibility of HEMORRHOIDS may be the cause for your sufferings.
possible causes include;
-straining at with increased intra abdominal and haemorrhoidal venous pressures
-prolonged sitting and standing
1.Prevention by lifestyle modification
Some simple lifestyle modifications can help one, prevent and even cure piles. A softer stool and regular bowel movements
are its main goals. A softer stool makes emptying the bowels easier and lessens the pressure on hemorrhoids caused by straining.
2.Increasing fluid intake
Increasing fluid intake can help in reducing the hardness of the stools. Drinking six to eight glasses of fluid (not alcohol) results in softer, bulkier stools.
Good sources of fiber are fruits, vegetables and whole grains. In addition, a fiber supplement such as psyllium
can be very helpful.
4.Do not hold the urge
Prevent holding the urge, as it can lead to irregular bowel movement and also hardening of the stools.
Regular exercise, including walking, can be very effective in regulating your digestive system
I hope this is helpful for you, thank you