As you have noticed it may be caused by stress
. It seems not to be significant but it may lead to a very serious and hard to treat disease called anal fissure
That is why you should get rid of constipations.
It is advisable to change diet and a lifestyle. You should increase water and fiber intake, and have more active lifestyle if possible.
If this wont help you should ask your doctor about some laxatives.