Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
It could fall asleep because it overheats or "thinks" so. I mean CPU fan or thermal sensor failure (reads enormously high value). OP, try SMC reset and check if all fans are working properly.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.