This could be happening because the dough is too soft and warm. To prevent this, try chilling your chocolate chip cookie dough in the fridge for 15 to 30 minutes before scooping and baking, or the butter to flour ratio could be off. I personally like them thinner