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

I am still not sure what was at the root of the issue exactly but it must have been something to do with the Graphics drivers in my particular case because the crashing wasnt an issue after updating my GPU drivers with a clean install