this type of issue if often resolved by reprogramming by BMW, so I would start there.
it is also possible that it could be an issue with the transmission output joint or an internal transmission mechanical fault or low transmission fluid, but a software update is the first ting to try.
Please let me know if you have further questions. Please do not forget to click a positive rating as this is the only way I receive credit for my answer, thank you. Best wishes with your vehicle.