This error appeared when I specified the domain in the panel settings. I tried to specify the domain instead of the IP address in the link to open the panel, but it did not help.
To make it work, I had to remove the domain from the file: /www/server/panel/data/domain.conf
After that, I was able to enter the panel again using a regular link with an IP address.