If you’re running an older version of Firefox you should update it to the latest version. This will patch any known errors that could be causing the crash. If you’re using an updated version of Firefox, you might have a virus or malware that is causing the crash, so you should run your antivirus software.