My X5 started doing the same thing recently. I had a code stored for Turbo Coolant Pump. Replaced it for $75 and all is well.
The replacement is pretty easy, you'll need two new hose clamps since your have to destroy the OEM ones. Took me about 1.5 hours.
https://www.ecstuning.com/b-genuine-...p/11517629916/