If it becomes a problem I would imagine that most victim plants will evolve certain defence mechanisms. For example, some insects will simply chew through flowers to reach the nectar stores - so I think in such cases a flower would just evolve a tougher skin, or secrete something that deters insects from doing that.
See https://www.backyardecology.net/not-all-flower-visitors-are-...