A failed cyclone valve created this disaster. If you own BMW X5, you should replace them with a new. The new made with upgraded component to prevent this.
We recommend to shorter your oil change intervals to maximum ten thousand kilometers with BMW approved premium, long life synthetic motor oil.
Some of this engines are know to have Hydraulic locked by motor oil, after cyclone valve drain failure.
Your catalyst converter and O/2 sensors are not meant to be soaked in raw motor oil, or have your car engine locked suddenly by the same.
This applies to most 3.0 BMW engines.