Looks like it was something related to the battery. Found the description in the X5 thread
https://g05.bimmerpost.com/forums/sh...38;postcount=3:
TSB #B610319
NHTSA ID #10160264
APRIL 01 2019
Additional Info:
How to Fix
Summary: SERVICE ACTION: PROGRAM OR REPLACE DUAL STORAGE SYSTEM BATTERY. A software error intermittently causes a continuous resetting of the microcontroller in the power management system. This causes the red Check Control Message (CCM) "Replace Battery"