[HELP] Rockstar editor freezing for 45 seconds then crashing

Alright so I have had this issue for a
while and I have tried to fix it in multiple ways with none of them working.

The problem is when I go to export a video (or clip) it will load into the screen where it would start to export and you would watch as it does so. Only mine just freezes and after 45 seconds it crashes and a window pops up where it says “FiveM has stopped responding”

Edit: I have seen some other posts saying that for some reason FiveM cant handle some “Maps” ( I guess thats meaning YMAPs and MLOS…? so I have taken all the “Map mods” out of my server and it still does it.

Does anyone know how to fix this issue? I will try and include a screen shot of the window that pops up.

image_2021-11-26_055234