There are over 400 comments on a thread here:
https://discussions.apple.com/thread/5496841?start=420&tstart=50
Some thought it started on 10.9 but 1 guy claimed to have had it off and on with a PowerPC model...
there are different people with different 'solutions' on different hardware.
For some, tweaking sleep setting are enough.
Others have had issues with hardware, USB cables and the like, some swear its a USB thing yet others have had it on Firewire, Thunderbolt et al.
Still others have had issues with desktops powered via APC power-saving units where the very low 'keep alive' current on the Mac wan't enough to keep the power-saver active.
Some with PRAM & Power resets.
Some have had success with clean reinstalls.
Related to a 'clean install' is a rebuild of the system configuration file, see Robster50
https://discussions.apple.com/message/24628255#24628255
For what its worth, there are very few claims of data corruption...