If it is a smaller tree, you might be able to use a systemic insecticide to protect it.
https://www.bonide.com/products/insect-control/view/609/annual-tree-and-shrub-conc
You’d need to treat every spring. For a larger tree, you could contact a reputable tree service for injection treatments.