Haemorrhoids can be caused by pregnancy
.In some women,they may subside.
The swelling could be haemorrhoid which comes out in few patients.It will be painful when blood clots
The pain sometimes is due to associated Fissure in ano
,a crack like condition in the anal canal
Get examined by a Surgeon and go for surgery
Till then take high fiber diet and drink plenty of liquids
Wish you good health and speedy recovery