this would most likely be due to a turbo fault.
it is best to have this vehicle diagnosed by a BMW specialist as very specific equipment is required for detailed testing - beyond simple fault scans.
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