Macbook pro enters sleep mode randomly
Macbook pro retina MF840HN/A (mojaveOS) goes to sleep randomly. Attempted reset of SMC and NVRAM configurations. Performed Apple diagnostic testing and no issues were found. But the sleep issue is not resolved. Even the OS was re-installed but the issue persists. Waking the device after manually putting the device to sleep (selecting Apple->Sleep) works fine, making the task to replicate the issue difficult. Request you to provide your suggestions/comments.
MacBook Pro Retina