It is common for ladies to get piles during pregnancy
. Piles is nothing but the engorged blood vessels in the rectum
at certain particular position. Usually pregnancy associated piles subsides after delivery as the pressure is released. but for some people who have associated constipation
, irregular bowel habits and amoebiasis
the pile which was in the initial stage called internal piles may engorge more and become external piles. Since you say that you have inflammed, painful and hard pile mass the only one advise is Surgical removal of those pile masses after proper investigations and follow the advise of the surgron post operatively and also in your future life to prevent recurrence.