Hierarchical Qubit-Merging Transformer for Quantum Error Correction