Every time I run the program I get an error sometimes

Please see if any crash logs have been saved, and if so you can email them to us for analysis: