Real OEM lists Rear Shock Absorber for M5 with EDC as $574.74 EDC control sensor is $525.64. Accelerating sensors price is not listed.
Perhaps this would give you an idea of the price for parts on the M3 with EDC shocks. Unsure how hard it is to tell if it's a bad shock or a bad sensor or accelerating sensor.