The latest Windows 11 preview build mentions a fix for File Explorer that should stop it from flash banging you in dark mode.
File Explorer in Windows 11 has some problems, but many of them can be easily fixed with just a few tweaks.