Just a wild guess, but sounds like maybe something in nocodb is not freeing up database connections and eventually no more new connection can be established. Restarting the app would free up those handles.
Have you searched upstream in the nocodb issue tracker already?