You may have constipation ( hard stool) which cause anal fissure and pile.
Next Steps
Avoid constipation by high Fiber diet , keep good hydration and increase physical activity and some bulk forming laxative like lactulose
For acute pain application of ointment like anobliss may help but in long term avoid constipation
Health Tips
If pain and bleeding occur then consult to gastroenterologist