This is usually an issue with the kind of bread you used. Flimsy store-bought sandwich bread simply can't soak up enough of the custard mixture, leaving a soggy mess. Instead, use quality bread like homemade sourdough, Italian bread, etc.