Hi Francesco,
We believe the error has to do with the fact that NH3 has a non-monotonic supercritical line. It needs to be fixed in the future.
For a workaround, please see this answer with a very similar problem:
https://www.mathworks.com/matlabcentral/answers/1989653-error-using-system-level-refrigeration-cycle-2p