The only way to avoid is to pay up. Its interesting that you have not even taken out a mortgage and you are thinking of forclosure !!!!!!!!!!.
Not much is availible in terms of mortgage products. Its straight repayment mortgage, maximum 70% LTV, as per Moroccan law, as a non resident you are only allowed one mortgage in your name. Lot of paper work is required to deal with banks absurd requirements.
Other information such as opening cost etc, have to be teased out of the Banks and if you ask too many probing questions, I get the impression that the banks dont like it and they start ignoring you.
I have spoken to various Banks. They have an attitude that we are doing you a favour not only buy lending you, also letting you buy in Morocco.
If you can avoid a moroccan mortgage do so as atleast youwill not be paying VAT on the interest rates for the life of your mortgage.