Hello,
May I know what is your Server version, is it Windows Server 2019?
Typically, this message is caused by the soft enforcement licensing feature that was introduced in Windows Server 2016 for per-device licensing, and in Windows Server 2019 for per-user licensing. It indicates that there's a problem in the RD Licensing server, or a problem that's preventing communication between the RD Licensing server and the Remote Desktop Session Host (RD Session Host) server.
Please refer to this article for more information:
In a per-user licensing scenario (Windows Server 2019 only), this issue can usually be resolved after all remote desktop servers have the latest updates installed.
I am not familiar with the CyberArk system, and according to your description, the problem resolves automatically without changing the configuration or restarting the server, which may be due to RDS licensing or some automatic updates or tweaks done in the background by the CyberArk system. If the problem reappears, please contact us.
Best regards
Jacen