Hi welcome to Health care magic forum. Some people in pregnancy
usually have constipation
and piles. In late pregnancy ,3rd trimister, constipation could be due to pressure on the rectum
, so to sleep on one side than in supine position can help free motion.
Besides medication i advise you some diet recommendations as take more of fibrous food like green leafy vegetables, sprouts, fruits and juices, and more of water to drink, will ease the stools to be free.
For the present you can use medicines for piles, which are use full , there are newer medicines even like THANK O.D.etc. with promising results.
Wishing for a quick recovery and thanks for calling.