After I upgrade to Xcode - 13 I have this problem, every time I try to generate preview in any file, Xcode take more than a minute and the system runs out off application memory:
then system become unstable and never recover even closing Xcode, I try restarting but the system hangs and need to make a force shutdown. I reinstalled Xcode more than once and still have the issue. Im running on intel MacBook Pro 2020 BigSur 11.6