Hi there,
Thanks for reaching out. Sorry for the trouble with Photoshop. We are here to help.
The screenshots and the error description you have shared are two different but common mistakes we can make.
For information related to the error in the screenshots, i.e. 'could not transform the path because the selected portion of the path does not enclose any pixels', please check this thread: https://community.adobe.com/t5/photoshop-ecosystem-discussions/could-not-transform-the-path-because-...
For information related to the error in the description i.e. 'can't transform pixels because the selected area is empty, please check this thread: https://community.adobe.com/t5/photoshop-ecosystem-discussions/quot-can-t-transform-pixels-because-t...
We hope these references help you out.
Regards,
Sameer K