Bees gnawing timber

Hi all, my bees are gnawing at the timber, it’s a flow hive 2+. First noticed the lid now the back of the hive has a hole? Why are they doing this and how to prevent, thanks