amateur or professional.

I need your opinions on an insect that is eating their way inside our willow tree. Pic2 shows sawdust that is accumulating below the hole in the tree that is being eaten. The last pic shows the hole that the insects find their way in.
Question !. What kind of insect is eating its way into the tree? This hole is deep and goes at least a foot into the tree.
Question 2. How do I treat this and get rid of the invasive insects.
There is a trailer in the neighbors yard that is at risk if the tree falls down.
Thanks in advance.
Cheers,
Guy.