A low amount of fat in milk or excess whey will cause the paneer to break. So make sure you use full-fat milk, squeeze the excess whey, and let it set in the fridge.