You are not the only one experiencing this issue, it has been reported a few times before. For example:
In the changelog of the anniversary patch, there is this note:
Fixed a rare issue where Boars could randomly stop chasing a unit after colliding with an obstruction.
So it seems they changed something. It might need further fine-tuning.