We study the transition from fluid invasion to capillary and viscous fracturing during drainage in porous media. To do so, we use our newly developed Multiphase Darcy-Brinkman-Biot framework to examine multiphase flow in deformable porous media in a broad range of flow, wettability, and solid rheology conditions. We demonstrate the existence of two fracturing transitions controlled by non-dimensional numbers that quantify the balance of viscous, capillary, and structural forces in the porous medium. We then use these parameters to establish a phase diagram for material failure caused by multiphase flow.