Carpenter ants in hive

I noticed lots of carpenter ants pouring out of the top of a honey frame when I was harvesting honey this afternoon! They have also been chewing the wood on the inside. Will ant granules on the mulch around the hive harm the bees? If so, any other solutions?

Thanks,