We found that there are three ambushes - one at 75%, 50%, and 25% health.
So when the ambush happens, you can run off and deal with it, then start in again on the tree (who will probably be at full health again by then, but you'll have gotten the ambush out of the way).