Hi had exactly the same problem, particularly bad in slow moving traffic, I took it into Volvo for trailer module software and mentioned it to them, they checked the software for the geartronic box and informed me of a software update that was available, I agreed the £33, they updated and cleared the adaptions and have not had a problem since.
I was initially thinking gearbox oil or worse, turned out to be a cheap fix