Yes, they get too big. Even if it doesn't escape (this is how most of these eels die in captivity), it would eventually pose a risk to your sixline or any other fish small enough to keep in a 40 gallon.
You could try a golden dwarf eel, but it would also pose an escape risk. Probably not as much as a snowflake, but the risk is still there.