The best solution is, remove the code which is issuing self-signed SSL from cyberpanel repo. Which is useless.
If someone need self-signed SSL, he can generate it manually and add it via cyberpanel UI,
The same was suggested by me many time but developer need this feature even it’s creating lot of issues.
Also many times I found SSL renew automatically but web server not reloaded hence sites getting SSL expire error in browser.