The french failed because-
1.)scarcity of necessary funds and lack of timely support from the French government.
2.)Its limited resources were inadequate and the viceroys and their subordinates very often indulged in private trade smuggling, slave trade etc. which directly or indirectly contributed much to the deviation from the main purpose and the consequent collapse of the French power.
Hope i helped u:)