if the editor crashes, then there are only two possibilities:
1) your editor file is damaged and needs to be reinstalled
2) a background program forces the editor to close
as said above, reinstall (best with a redownloaded installer if you have the standalone version, if on steam clear steam download cache before reinstalling)
If that doesn't solve the problem, it is a background program that interferes and you need to find out which one it is by checking the logs of all your anti-programs as well as whatever you've loaded into your background tasks.