I am having the same issue. Car starts acting like there is no fuel at about 1/4 tank.
Upon further investigation there is indeed fuel in the tank (opened up the tank from under the rear seats)
Incase you were not aware, the tank has an "n" shape, this is so that it can go over the prop shaft under the car. Therefore your tank theoretically has 2 side and 2 level sensors. There is a pipe which links the 2 sides called a "suction jet pump", stupid name, but this is the name given by BMW.
Either the "jet pump" has come loose or the following is the explanation....
So this is how it all works.
Fuel is pumped from the tank through the fuel filter, which if I’m not mistaken has the pressure regulator built in. When going through the regulator the correct pressure will be sent to the injectors and the remainder will be sent back to the tank but to the left side. Now when the fuel pump starts to give in it does give enough pressure to force the fuel from the left side, through the "suction jet pump" and back to the right side. Therefore that overflow fuel stays on the left side and you consume all the fuel on the right side.
I find it happens with more range available when I have been driving on a straight road for a while. Explanation as to why on a straight road to follow in next paragraph. :=):
If you willing to do a little experiment then try this. When your car gets to about 1/4 tank or it starts to stutter as if it’s going die, hook a hard left, when safe to do so of course :rollsmile:, this will cause the fuel on the left side to slosh over to the right side, by the fuel pump and you should be able to continue driving for a bit. The fuel will not stay on the right side though, as when fuel is pump it goes through the pressure regulator and the overflow goes back to the left side.
Yoh, long explanation, but it’s the best way to explain it.
Hope this helps. If I’m wrong then please, someone correct me, but this is the experience I have had with my car and have proven there is still fuel in the tank and that the fuel level sensors are still working.
Oh, and there is a way to check how many litres of fuel are on each side of the tank, it involves accessing the "Hidden menu" when pressing the KM reset button before turning the key to the on position. Would explain that but I'm a bit tired of typing now.

Do a google search and you should find it. If you don't come right then let me know and i will post a explanation.
FYI, I got a quote from BMW dealer for fuel pump, I have the 2.2l 6 cylinder, quote was 5k just for the pump. Problem is that the dealer only sells the pump with the level sensor as 1 unit.
If you go to a parts dealer like masterparts or something you should be able to pick up the pump for around R800. Only problem is it’s a Pain in the Ass to separate the sensor from the pump.
Ok, that’s me.
PM me if there is any confusion or you require any further assistance.
:thumbs: