Is the marriage contract considered valid if concluded at home by the marriage official (Ma`zon)?
Yes, it is valid as long as it is registered at the court.
Does an internal examination require ghusl?
Ghusl isn't required for making internal examination; however, it invalidates one's fasting. And Allah Knows Best.
I suffer from excessive gas, especially when I pray, and I redo my ablution more than seven times. I have obsessive thoughts about this matter, even though I went to a doctor and was given medication that did not help. What should I do?
If the release of gas stops at certain times between prayers, you should wait for that time, perform ablution, and pray. However, if it is continuous, you should perform ablution after the prayer time begins and pray, and the release of gas during the prayer is excused. And Allah The Almighty Knows Best.
Is the Aqeeqa due on the newborn in case of dying almost a month after the delivery?
Offering Aqeeqa after a week of a newborn death is recommended.