use a nipple extractor or an internal pipe wrench both are sold at the big box hardware stores. The downside of them is they scratch up the inside of the nipple but it sounds like the nipple is gonna get ruined in this process anyway.
As mentioned before I would put the ball valve in a vice and use a pipe wrench to remove the nipple. The nipple will get destroyed but they are only $2 to replace.