Error accessing email from the browser via webmail

I have a server where I installed HestiaCP, running PHP 8.3. I’m having trouble with email; when I try to access it from a browser with webmail, I get an internal error message that says:

Oops… something went wrong!

An internal error has occurred. Your request cannot be processed at this time.

For administrators: Please check the application and/or server error logs for more information.

However, I can connect without any problem from Thunderbird or via IMAP and SMTP.

How can I fix this problem?

See here, if you’re running hestia, this message is for you as administrator. Please check the logs, if you can’t fix it, please provide them here.

How do I check the logs?