I recently had some random stalling problems with my 530i, where no service engine light would come on. After months of slowly failing, the intake cam sensor finally died and threw the service engine light so I could easily diagnose it. Here's a quick DIY to replace the sensor:
https://youtu.be/yVayKZKqkBw