Lumberyard keeps crashing after making changes and saving in lua editor?

The lumberyard editor keeps crashing. After I make changes to a script in the lua editor and save I go back into the editor the fps drops to 1 and the editor crashes. This has happened even in previous version of lumberyard. I’m not sure why this happens. But just letting you know. .