Notched exterior stud next to chimney
You don't need a ton of room to install a stud shoe.  You can also use traditional strapping but I would try to get a shoe on it.  If you can attach the front and one side really well you can probably get away with not attaching the side near masonry as well (could glue it).  The 2x is compromised so you need something bracing the front.