Not sure if it can work with episerver since I never tried this but coding the sql connection seems to solve a sql connection error handling. If episerver can work with that I do not know. Maybe someone else have a better answer?
The error it self has nothing todo with episerver but epi is dependent upon the db. So if it is possible to code the connection instead of using in config that might work.