Could you please explain whether it is true that the solar and lunar eclipse could have a very harmful effect on pregnant women or their unborn children? Back home, a pregnant woman is told to observe a very strict system, such as staying in a dark room, not doing any housework, or eating, although she may drink water. She cannot use a knife or scissors, etc.

All this is superstition that has nothing to do with Islam. The Prophet, peace be upon him, says that the eclipse is a phenomenon that God has created. It does not happen for any human being’s birth or death. He has taught us to offer a certain prayer during the eclipse, which is very special in its form and length.

This prayer is two Rak’ahs but each Rak’ah doubles up on the number of standing up to recite the Qur’an and the bowing position, i.e. Rukoo‚ and the recitation of the Qur’an in each standing up position should be long, as should be the glorification of God when we bow and when prostrating ourselves. This prayer is strongly recommended to both men and women, whether pregnant or not. Nothing of the restrictions you have mentioned applies. It is all stupid superstition.
ALSO READ, if you will, the article “Prayers during the Eclipse for a more detailed advice.”