Query Stuck In Database

Mariadb version :10.6.8
Server:Digital Ocean
Ram:16 GB

Maria db query getting stuck which causes the server to freeze.

my.cnf File configuration

Ouch, you may need some query extraction plyers:

https://www.google.com/search?q=extraction+plyers

.

.

.

.

Disclaimer: just kidding.