One possibility is the active front grill. Do a search and you will find Several threads about this. Couple examples
2018 X3 Active Kidney Grilles - Broken and Backordered
https://x3.xbimmers.com/forums/showthread.php?t=1560202
Code P05AF
https://x3.xbimmers.com/forums/showthread.php?t=1591492