Does the clipping of nails nullify ablution?
No, it does not, and it is preferable to wash the hands afterwards.
What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
A woman went for Hajj while pregnant, gave birth after leaving Arafat, and was unable to perform the Tawaf Al-Ifadah. If she cannot stay until she becomes pure from postpartum bleeding (Nifas) and she is from a distant country, what is she liable for?
This woman is advised to leave Mecca in a state of Ihram if the caravan departs. Once she reaches a distance where returning to Mecca is not feasible, she should consider herself in a state of being prevented (Muhsar). She may then exit Ihram, and she is required to offer a sacrificial animal (Blood) at that location. Additionally, she must perform a compensatory Hajj at the earliest possible opportunity. And Allah Almighty Knows Best.