Earlier quoted context omitted.
Lasers would be more effective. 1W and above lasers are readily available on the open market, and output more than enough power to fuse or burn out any optics that are not shielded.
Lasers are slow to impact (unless using an obscene amount of power) and require precise tracking of the target over time (because they're slow).
CIWS systems and fighter cannon are gatling guns precisely because the probability of any single round hitting a small, moving target is low.
If all you need to do is overload the optical circuits of a drone, a 1W laser is sufficient. Whether you kill the drone by incinerating it in midair or kill it by causing it to crash due to loss of orientation, the result is the same.