If you add very hot gulab jamun in very hot sugar syrup this happens. Rest the gulab jamun for 30 seconds after removing from oil and then dunk in syrup. Also the sugar syrup should be warm and not hot.