Whew!?
Back on those errors you piced...
OS X no longer pays attention to disk activity when deciding if it's OK to put the system to sleep. Instead, Apple recommends that applications make what Apple calls "power assertions" as a way to tell the OS when they're doing some useful work that the system should stay awake for.
http://mikeabdullah.net/power-assertions.html
Run this command in Terminal...
pmset -g assertions
And list the text...
pmset -g assertions
2019-02-15 09:37:53 -0800
Assertion status system-wide:
BackgroundTask 0
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 1
PreventSystemSleep 0
ExternalMedia 1
PreventUserIdleSystemSleep 1
NetworkClientActive 0
Listed by owning process:
pid 59(powerd): [0x0000005c00088000] 42:10:59 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"
pid 114(hidd): [0x000249af00099976] 00:33:38 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968055.3"
Timeout will fire in 480 secs Action=TimeoutActionRelease
pid 1090(AppBundleExe): [0x0000099200058230] 41:31:41 PreventUserIdleDisplaySleep named: ""
pid 1090(AppBundleExe): [0x000009890005822f] 41:31:50 PreventUserIdleDisplaySleep named: ""
pid 148(coreaudiod): [0x000009a500018244] 41:31:22 PreventUserIdleSystemSleep named: "com.apple.audio.AppleHDAEngineOutput:1B,0,1,2:0.context.preventuseridlesleep"
Created for PID: 1090.
Kernel Assertions: 0x4=USB
id=506 level=255 0x4=USB mod=12/31/69, Dec 31 04:00 PM description=com.apple.usb.externaldevice.fa120000 owner=USB Keyboard
id=508 level=255 0x4=USB mod=12/31/69, Dec 31 04:00 PM description=com.apple.usb.externaldevice.fd130000 owner=USB Optical Mouse
id=509 level=255 0x4=USB mod=12/31/69, Dec 31 04:00 PM description=com.apple.usb.externaldevice.fa130000 owner=USB Optical Mouse
Idle sleep preventers: IODisplayWrangler
Using any of these?
https://support.apple.com/guide/directory-utility/welcome-diru2dc0ea09/mac