Multicritical Behaviour of Spin Glasses and Quantum Error Correcting Codes