This is likely because your cookies are overbaked. Try taking your cookies out of the oven sooner, and double-check your oven temperature to make sure that it isn’t running too hot (see my tip about ovens above).