the stud is tack welded to the exhaust headers. I'm sure that the weld has broken and the stud is spinning. It may be possible to get a grip on it from the back side and take the nut off.