Why few lines of texts can run out of memory?

There have been lots of reports of the memory leak in Figma in the recent weeks. Figma grab the whole RAM when I open large files after the last update (August 31, 2021)