On the Logical Error Rate of Sparse Quantum Codes