Overmixing the dough or using warm ingredients can cause the cookies to spread too much during baking. Make sure to mix the ingredients just until combined, and use chilled dough for better results.