Psin while passing stools along with bleeding, is commonly due to Fissure. Piles are usually not painful, unless in severe grades.
Next Steps
I suggest you visit a general surgeon.
Health Tips
Drink plenty of water.
Increase dietary fiber, i.e fruits and vegetables