Hi
This is my first visit and looking for info on a similar problem with my 2017 xf. It happens at 1250rpm whichever gear I am in and accelerate gently. Kick down and it clears.
Sorry it doesn't help either of us but will get back if anything discovered.
Cheers Stewart