Adding my piece to this thread, you'll also find other tips here:
https://www.m3post.com/forums/showthread.php?t=1714625
I had same issues others have described. limp mode with 27E4 engine code - and intermittent buzzing from the vacuum pump heard in the cabin, sounding like its coming from behind the dash.
helped me out and directed me to this brake boost pressure sensor being the culprit and I ordered the sensor only from a regional BMW dealer. They are available generic on Amazon for as cheap as $20 but delivery on those were out 1-4 weeks airmail from China.
My contributions:
I have a deep adolescent and biologic drive to unfasten things. Just imagine what is behind this once I get it unfastened. I get breathless, my mind fogs, I can't do anything until I get it unfastened to see what is beneath. If you are like me in this way, RESIST. As a couple others above have mentioned - I did not need to remove the reservoir, did not need to disconnect the ABS pump, did not need to disconnect the vacuum line to remove the shroud.
I used a rigid hooked grill tool to nudge the vacuum line the sensor sits in. this allowed me to disconnect the two #15 torx screws which I retrieved with a magnet. GENTLY pulling on the wiring harness and using said hooked tool - I dislodged the sensor and pulled it out from beneath the reservoir. When I dislodged the sensor - I did hear a release of vacuum.
While the brake fluid had not been flushed/changed in 2 years (it's now on the list), I had disconnected the brake fluid reservoir cap during my Harrop install to route my boost sensor hose - and I think I got a few drops of brake fluid splashed onto the sensor when I did that - causing the short. There's evidence of fouling on the surface of the old sensor seen in the photo - but also the o ring is a little shredded.
I installed the new sensor into the wiring harness and carefully routed it back down in place. Once I had the holes lined up - I used a skinny and malleable magnet tool to feed the torx screws into the hole and got it started 1/4 - 1/2 of a turn into the threads. that was enough to remove the magnet then get a proper torx bit on a couple of 1/8" extensions into place and screw the sensor down. I used the grill tool to nudge the vacuum hose the sensor sits in during this phase as well - mostly to get the screw holes in position so they can be reached from above without removing the reservoir.
After the job was done, I routed a 2" x 3" piece of neoprene rubber atop the sensor area to attempt to prevent this in the future. at the moment it's not secured down but is caged by the wiring and ABS brake lines so I think it will just ride atop the sensor without issue.