Answer
Bayrou's resignation in 2017 was primarily due to an investigation into MoDem's employment practices. The investigation alleged that MoDem had used European Parliament funds to pay party staff, which is against EU regulations. Bayrou, as leader of MoDem, was ultimately responsible for the party's actions and therefore resigned to take accountability.