These repairs are laughably expensive. My advice is to go to an independent shop, not a dealer. You should know that you will pay for many more repairs after your "upcoming repairs." BMWs are usually money pits. Independent shops are almost always cheaper and are not sleazy like the dealers.
With that said, you should dump it if your next car will not be notoriously unreliable or expensive to fix. There is no reason to dump this BMW if you will be buying another unreliable car like an FCA, Mercedes, VW, BMW, etc.