I agree, that's terrible. It looks like the edge is exposed ( non glassed ) coring with some paint of gel coat poorly painted on.
Have you spoken to the dealer? That would be the normal channel to go through. See what they say and offer as a resolution. If not satisfied, then escalate to...