Hello,
I am having some problem with my roof too, blinking red.

I rarely use the roof, the hardtop is mostly on and closed. Not sure what happened.
Bought a VeePeak OBDII and scanned it.
A690 - Microswitch, rear-end module closed, left
A696 - Hall sensor, open circuit, closing movement, rear-end module
A698 - Rear-end module open during driving
The battery is old, year 2011, if I remember correctly. I was getting some "Increased battery discharge" messages lately because of the lockdown. Bought a CTEK charger and it charges fine. But the roof button is still blinking red.
I was hoping that if I charge the battery back, the problem will go away (I will change the battery soon). Guess I will need to check the microswitch and sensor shown above.
Is the location of the microswitch at "rear end module" No.4 in the pictures shown previously? Hall Sensors, I'll see how many I can locate in there.
Thanks !