May a pregnant woman attend a levaya?
What is the Inyan involved?
A pregnant woman may attend a funeral, when necessary for a relative or someone close to her. Otherwise, she should refrain from being at a funeral or in a cemetery.
Two reasons are brought to refrain: because of the spirits that cause harm, and because the grief and pain may be dangerous for the pregnancy. See Shevet Hamussar 24:16, Shu”t Minchas Yitztchak 10:42:2.