Your daughter will probably do even better in her exams if you take her back and she repeats the year. She will be able to study the same material more than once and would then do very well in the exams.
You say yourself - your husband is no longer working at QP, and the government has rejected your sponsorship transfer. Do you think there is a third, magic, option, that will allow you to stay? You've done your best to find a solution, but there is no only one solution remaining - leave Qatar.
Just be grateful you don't have big loans or financial problems to worry about.