Hullo, and welcome to the forum!
If it crashes repeatedly with both Windows and linux, it may well be a hardware problem.
One thing you could try is to (re)move the file /ext/X11/xorg.conf if it exists. It's a configuration file which can cause this sort of behaviour if it's configured wrongly. (If it doesn't exist, then the problem is elsewhere.) Try typing in a terminal:
Code:
cd /etc/X11
sudo mv xorg.conf xorg_conf
and then reboot the computer.