Either Allah's mercy is finite (contradicting His attributes), or eternal punishment is excessive (challenging His justice). He can't both apply his mercy and his justice at the same time.