To prevent the pastry from becoming soggy, avoid overfilling the tarts with the cheesecake mixture. Consider lightly dusting the pastry with flour before adding the filling. Additionally, ensure the berries are well drained to minimize excess moisture.