Thank you Ernesto for your quick reply,
in IP Design checker, there are a few warnings that do not seem to be related to this problem.
In sharepoint log, I found this line that I hope will help:
"FormServer Partial Trust - remote conversion for solution IW:/SITES/xxx/xxxx/FORMS/TEMPLATE.XSN, tag:RixxiVgjHnXpFEG0DqIFpufzshK4nOLHzKpLnKA0D4(InfoPath Form_xxx_C9JVdIOa_1.0.0.722.wsp) from site a1776176-c8d4-4406-8282-4bc207fdb8bb failed with exception The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request."
I even tried with a new blank form template with just one Button and a single line of code, I still had the same problem.
Thanks