Have you tested your RAM? Go download Memtest86 and let it run for at least 4+hrs (hopefully it doesn't turn off while testing). You mentioned its only within Windows that it does this? Have you tried reinstalling your OS? Could be that your motherboard is going out, as well.