This happened to my E90 330i. Hail clogged the drainage. DME flooded. Nobody I took it to could fix it. They couldn't even get the programming right on a used DME I picked up from another E90.
Ended up having to pay BMW R27k to fix it.
Good luck bud. Let us know if you come right.