Sadly this seems like an issue with Windows 11.
I've seen people mention that disabling OneDrive can help and changing the compatibility options too.