This problem usually occurs after training AI Chat and is related to the server configuration.
You can fix the issue by replacing the values in your site’s php.ini file with the following values.
allow_url_fopen = On
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 300
max_input_time = 300
max_input_vars = 10000
memory_limit = 1024M
post_max_size = 1024M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php82"
upload_max_filesize = 2042M
zlib.output_compression = Off
output_buffering = 4096