What is incumbent upon the one offering the sacrifice if, after slaughtering the animal, they discover that one of its internal organs is damaged or diseased?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
The presence of disease or defect in the internal organs of a sheep does not affect the validity of the sacrificial animal, unless the disease leads to the animal becoming emaciated and its meat becoming corrupted.
It is stated in al-Iqnā' (2/590) by Imam al-Shirbīnī: "The third disqualifying condition: an animal with a manifest illness — meaning one whose illness visibly results in emaciation and corruption of its meat. However, if the illness is minor and does not produce such effects, it doesn`t affect the validity of the sacrificed animal." And Allah Almighty knows best.
Can I start fasting based on the moon sighting of another country?
You must follow the moon sighting of the country you are in.
What is the ruling on someone who eats or drinks thinking that the night is still present, then realizes that dawn has broken?
Whoever eats or drinks thinking that the night is still present, then later discovers that dawn has broken, must refrain from eating and drinking for the rest of the day out of respect for the sacred month. However, they must make up that day after Ramadan, and there is no sin upon them.
Does undergoing an endoscopy during the day in Ramadan affect the validity of fasting?
Undergoing an endoscopic procedure during the day in Ramadan—whether through the mouth, nose, front private part, or back private part—invalidates the fast.
Whoever undergoes such a procedure must refrain from eating and drinking for the rest of the day out of respect for the sacred month and make up for that day after Ramadan.