Hi, your condition is mostly due to injury to mucosal layer in your anal area, as you are giving history of constipation for long. That condition is much painful and can hurt unbearably.
Next Steps
Try taking more fibre in your diet
Health Tips
for medicines and further details kindly connect over practo with detailed history for further immediate management