To prevent cracks, avoid overmixing the batter, bake at a lower temperature in a water bath, and cool the cheesecake gradually by turning off the oven and letting it cool inside.