Probably wood boring or death watch beetle…If you were in Australia, I’d say termites, but they’re very rare in the UK. Wasps do make they’re nests from wood, I caught one gnawing on a window sill once , the noise was incredible, but they don’t tend to make that much damage