Most common problem linked below. I was quoted around $1k from dealer for parts and labor. You could probably find a used strut assembly on eBay for less. If you’re handy and can work on your car it’s actually a pretty easy install.
I took the opportunity to install coilovers.
https://f30.bimmerpost.com/forums/sh....php?t=1608356