Connection breaks after long use of Neo4j DB

Hi I am using 4.0.X

I hv installed neo4j as docker container, I am using it for last 1 year... but recently I hv a procedure where i need to call a neo4j create query evey 1 sec... and after that I am regular facing the below error..

Neo4jError: Failed to connect to server. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0. Caused by: Failed to establish connection in 30000ms

The error stops as i restart the service