There was another thread regarding the rubber trim being too short on the sunroof that caused similar problem.
TSB :
https://static.nhtsa.gov/odi/tsbs/20...05090-9999.pdf
https://g05.bimmerpost.com/forums/sh....php?t=1884145
I have a 2023, the sunroof rubber seal has a half inch gap.