If you are not able to hold feaces at all, even until the ghusl is completed, then your ghusl is valid, and you do not need to repeat it, and your prayer is also valid.
Yes, you need to purify the impure place and the impure hand.
I ask God Almighty to heal you