You shouldn't have InnoDB using that much memory on a system with other services such as Apache/Nginx/PHP/Litespeed when expecting many processes. MySQL should only be given the bulk of RAM on a system with very large amounts of RAM, when it's a dedicated MySQL Server, or when MySQL is the primary process running with few other processes such as PHP.
Additionally, turn off the query cache. Do not turn it on, it will increase load during high concurrent usage. The query cache is single threaded and will block other queries while it's being searched. It was meant for performance back in the days when systems didn't have many CPU cores available. It's being deprecated and removed from MySQL. I believe it already has been in MariaDB 10.3+, not sure about MySQL as I don't follow them as closely.