Please, help me. Gray screen in Figma

Hello, when I open files where there are many components and hidden layers, figma starts to slow down and eventually a gray screen appears. I do not know what this is related to, please tell me what. Thank you in advance.