I had all kinds of birds attacking my fruit trees but they mostly stopped after I hung a few old compact disks in the branches. apparently they hate the spinning reflected light.
just found this gizmo which seems cheap enough to try and could prob be found for less or DIY even cheaper
https://www.birdbgone.com/reflect-a-bird-deterrent/