You asked:

how do you say trial and error in french

Sorry, I don't yet have an answer to that question.