I started having this problem immediately after installing the newest update High Sierra 10.13.6. two days ago. It's been happening ever since and it's a problem if it sleeps for 5 minutes or 5 hours.
Possibly related are problems when using Safari. Cursor will freeze and only when I swipe up with multiple fingers to view open windows then go back into Safari does the problem stop.
Will follow the above troubleshooting steps but am quite sure it's an update problem and will keep an eye out for a new update.