The connection to the server has been lost during the work of WordPress

Hello everybody. Faced with a tweak of the situation with WorPress. While working in the WordPress environment, the connection to the database is lost. It lasts approximately 15 - 60 minutes, after which the site runs about 15 - 30 minutes and the situation repeats through the intervals given above. I want to know what this reason is and how to solve it. Sorry for my English, I do not understand.

Maybe the DB connection is limited to a certain amount of time :confused:

It depends on the fare or not? I want to know how much time I have in order to add content and customize my site, as well as to plan work with it.

Just guesses, my better guesses are related to Rate Limiting