It sounds like your oven is too hot! Lower the temperature of your oven and cover the babka with an oven-proof bowl or plate. Bake until the middle is just cooked! Ovens can say they are 170°C (340°F) but are really much higher! If you bake a lot, I'd *highly* recommend you get an oven thermometer.