I make no promises that this will work but I'm only guessing here and I have further contacted you via discord to work with you on this if you would like some help but so I do not forget I'm going to just go ahead and post this here.
The error
Lost connection to MySQL server during query is a little bit of insight to what is going on considering what is the most important factor of this issue
during query. It is possible that your network connection is having troubles. So lets first attempt to increase
net_read_timeout from 30 seconds to 60 seconds (or if that doesn't work we could even try a longer amount of time).
}} cPanel --> phpMyAdmin --> Variables (right portion of the screen, top tab bar) --> Find
net read timeout --> Edit (left hand side option) and then input 60 instead of 30 and click save (which will be next to where the edit option was).
Give it a go. If it does the same thing again, increase the time in seconds one more time to 90. Give it a go one more time. If that does the same thing again lets move on to a different attempted solution.
---
Possibility number two is that this is occurring when the client is attempting to create the connection to the server. You can attempt to change
connect_timeout to a higher interval in seconds. Generally it is set to only a few so try 10 (if that doesn't work you can attempt longer).
}} cPanel --> phpMyAdmin --> Variables (right portion of the screen, top tab bar) --> Find
connect timeout --> Edit (left hand side option) and then input 10 instead of whatever it is and click save (which will be next to where the edit option was).
Give it a go. If it does the same thing again, increase the time in seconds one more time to say 20. Give it a go one more time. If that does the same thing again lets move on to a different attempted solution.
---
Possibility number three could be an issue with the binary object variables are larger than what is allowed. In this instance we would give a larger interval than what is currently there a go via max_allowed_packet, now I have no idea what yours is defaulted to but mine is 268,435,456 so I would just upgrade it to 368,435,456 because that is a whole million more (if I just mathed correctly).
}} cPanel --> phpMyAdmin --> Variables (right portion of the screen, top tab bar) --> Find
max allowed packet --> Edit (left hand side option) and then input your choosing of interval instead of whatever it is currently (be sure you go higher not lower) and click save (which will be next to where the edit option was).
Give it a go. If it does the same thing again, increase the time in seconds one more time. Give it a go one more time. If that does the same thing again lets move on to a different attempted solution.
---
Last solution I can think is to contact your host directly to see if they can help solve this issue for you or provide some more detail on what is going on.