iTunes stuck at 'sync' stage after iPhone 12 Pro updated to IOS 7.2
I recently updated my iPhone 12 Pro IOS to 17.2 the other day and now when I connect the iPhone 12 Pro to iTunes on my iMac, iTunes get stuck 'syncing' the phone at step 2 of 4. This is very frustrating as everything was working happily before the phone update and now I cannot back-up or sync my iPhone in iTunes.
I'm running a rather old iMac (2009) which is running Mac OS 10.13.6 High Sierra. I have not been able to update the OS beyond this for a while but the iMac runs well although some functionality has been lost to to the age of the computer.
iTunes version is 12.8.3.1 but I know this is not the latest version of iTunes but I'm not being prompted to update on my iMac. I expect that is due to the OS level on my iMac.
Any ideas on how to fix this please? i.e. iPhone sync in iTunes getting stuck.