In designing a sheet metal enclosure, what factors must be considered when determining the bend radius and material thickness to prevent failures during forming?