Beneteau seems to have acknowledged that this is a condition requiring repairs. The fact that such a recent boat has this problem should be a bit of a red flag.
If this is the model you have your heart set on, there must be more of them around... check them out for the same issues. Maybe look into buying one without said problem, but keep in mind that it may simply not have had that problem yet.
If the deal justifies the hassle of repairing things to start with, and - most important- the repairs are properly carried out, you could end up with a perfectly fine boat.