I know I'm N47, but do you use a fuel stabilizer or fuel additive? I add some PowerService or DieselKleen every handful of fill ups (4-8) depending on the amount I fill up or the timeline since my last fill as I don't drive the car all the time. I also swap out my fuel filter every other oil change (10k miles). I know BMW says not to use additives, and its a mix of reviews online, but if gives me a piece of mind that I'm doing "something" to treat the fuel and prevent issues as not all Diesel is the same and its a sticky substance.
Its wild that something like a crank sensor can cause such bizarre unrelated codes 🙄. I hope that was your fix!