Finally, I found how to solve the problem with the trick posted by Getter Robot in the 31th december 2022:
- Enable "Link State Power Management" option in Power Options.
- Choose "Off" for "Link State Power Management".
- Reboot.
And now everythings are ok with the WD SN740 1Tb.
This is what finally did it for me. WD SN770M 1Tb SSD. Windows 11. Edit Power Plan > Advanced Settings > PCI Express > Link State Power Management > Off for both battery and plugged in. Thank you!