How to prevent Unreal engine from crashing when submitting to source control?

I am also having this issue. Unreal engine will freeze completely, but most of the time my updates always updates my submission to perforce.

Has anyone found any workarounds or fixes for this as of November 30 2023?