oci8驱动程序:间歇性连接中断

I have been using oci8 for over a year now for several batch processes. There I used to make oracle calls based on a particular frequency without any high number of parallel requests. Recently I started using this driver to process multiple number of user requests in parallel using go routines. The connections go through 90% of the times but for remaining 10% I see an error driver: bad connection being thrown from this driver. This is generally happening in two situations:

  1. When the connection was left idle for too long(happens for few requests).
  2. When there is a spike in number of connections.

Actions taken:

  1. Already checked with my oracle DB for connection/session limits. There is no such limit on it.
  2. Tried forking the branch and adding error logs which didn't seem to compile. Most of the people who have faced this issue mentioned wrong handling of multiple connections at the same time. For me that is something done by oci8.

Please help!