Repair sprinkler pipe
Dig out the area enough to cut out the tee and enough pipe such that a new tee and a coupling can be glued in. This will result in slight re-positioning of the sprinkler.

If maintaining the position exactly is important, cut back enough pipe on both sides of the tee and use two couplings.

You will need to be able to pull up, flex, or move the pipe a bit to facilitate the installation of new fittings. If this is not feasible, I have had good luck with repair couplings, which open like a clam shell or come in two pieces; so you do not need any pipe flex: