Why is 2n^2 rule not valid for 5th shell?
No this rule is not applicable to the 5th and later shells. In these the no. of electrons are 32, 18 and 8 respectively. this is because no matter how many shells are added the orbitals will remain the same from s to f and the maximum electrons any shell can hold cannot increase 32.