That appears to be a Blazemaster CPVC sprinkler head adapter.
Looks to me like you're going to need to cut out the tee in order to replace the adapter. They do make a sprinkler head tee with metal thread insert. That might be the fitting for your application.
I'm not a sprinkler fitter, but hopefully the following link will steer you in the right direction.