Hundreds of thousands of session files in the folders /var/lib/lsphp/session/lsphp82/

After updating the cyber panel to the latest version, the sessions in the folder are not cleared. The disk is filled in 2-4 days and all sites are down.
Also, tens of gigabytes of files accumulate in folders: /usr/local/lsws/cachedata and /usr/local/lsws/logs
How to fix this problem?