The following isn't regarding 2012 iMacs but after spending time trawling the internet looking for a solution and trying all kinds of things, I have posted this here in the hope it helps someone else.
I spent a long time trying to get Boot Camp to behave on my late 2015 i5 iMac running Mojave but it just wouldnt get past the partitioning of the disk phase in BCA. It would error within a minute or two.
I then tried the manual route, successfully created a partition, booted into Windows using a bootable USB but then Windows had issues in the 'Copying Files' phase of the install and would error there too!
I tinkered a while and eventually broke my OSX install completely by accidentally deleting a partition of the Fusion Drive. Great.
As always, I have a Time Machine external drive plugged in at all times and decided to start again from scratch restoring a backup from 2 days before.
After a few hours, restore completed and everything was back where it had originally been.
Tried the BCA again and shock of the century it worked first time so I now have Windows 10 Pro and OSX Mojave running together like old friends.
The cure? I couldnt tell you, if I'm honest but if it worked for me, it may work for you!
Time Machine + start from scratch = Happy New Year!