Figma crashes when merging or updating Branch

I’ve been encountering a major bug when using the branch feature on our libraries. When I try to merge the branch or update the branch from main, it will display “generating changes” then Figma will crash.

This has resulted me to have to create an entire new branch and redo the changes.

Does anyone know a fix for this or know what is causing the issue? This happens on both the desktop app and browser app.