If you do not want to see this error, use better hosting. Yours has probably problems with database stability.
You might now say "what should I ask hosting to fix" ... well answer is that 99% of hosting companies tells you "all is good on our side" as it's often caused by weak infrastructure or overloads on shared hosting.
For comparison, we use websupport.sk as hosting and in 10 years, never seen this error on any of plenty sites & domains.