Happened to me too when I was rebuilding rear axle but I did have the whole subframe removed from the car on the ground. However this has to work for you too. Take an angle grinder and cut off all the heads of the bolts flush with the CV shaft. Then you unbolt the diff and you will be able to separate the CV shaft from the bolts (now you turned them basically to studs hahaha). Removing the diff isn’t that big of a deal, but maybe that’s just me. That bolts are made out of clay! And if you have a welder you can try the method that guys posted above, where you weld a nut on the bolt. The heat from welding does some trick too.
Edit: the stuck studs went out super easily using wrench in the picture.
Edit: the stuck studs went out super easily using wrench in the picture.