To make sure the error comes from Litespeed, check the Apache error logs, and search for a line like:

2020-10-15 14:00:02.347555 INFO 14241 199.188.220.242:50205:HTTP2-15#APVH_DOMAIN_NAME:443 Connection idle time: 121 while in state: 7 stream flag: 205057,close!

And add in the .htaccess file, the following code:

RewriteEngine On
RewriteRule .* - [E=noabort:1, E=noconntimeout:1]