You have PCOS
and pain in the anal region, lower abdomen and loose bowel movements. Even though PCOS can induce disordered bowel movements, Your problem seems to be local cause in the anus. Have a proctoscopic examination of the anus and rule out hemorrhoids, Fissure in ano
and fistula in ano.
Do USG abdomen to find the cause for the lower abdominal pain
With this you can arrive at a diagnosis and treat the cause + healthy diet, along with treatment of PCOS.