The current failure is somewhat expected since the cloud has security restrictions on setting environment variables and the notion of a home directory is slightly different between the kernel process and the cloud user account.
However, placing the license file under FileNameJoin[{$HomeDirectory,"mosek","mosek.lic"}] should start working in the near future (as soon as the cloud is updated to running Mathematica 13).