WD20EARX - POST fails but working well under Windows

Welcome to the Community.

If the issue has been narrowed-down to this hard drive and different hardware options have been tested, then I’d recommend replacing it even if it passed diagnostic tests.