External HD (Time Machine) sleep issues
To answer my own question:

Most likely the issue was caused by the WD Driver Utility app, as reported by many in the WD forums.

If not that, it was caused by an unpowered 7x USB-A to USB-C hub that the HDD was connected to earlier.

Either way the problem is now gone.