This can happen if: 1. Too much baking powder was added to the dough. 2. The dough balls had cracks, and the dough was not soft. Knead dough again to make balls without cracks. 3. The oil was too hot when frying the gulab jamun.