Is the issue across all ESXi hosts or specific to one ESXi?
Try below steps:
1. Connect to ESXi via host client interface and invoke power operations.
If you still get the same error message most probably hostd will be in hung state and you might have to restart ESXi host.
2. If you are able to invoke power operations by connecting to host directly, then verify vpxd logs.