وَيَغْفِرُ مَا دُونَ ذَلِكَ لِمَنْ يَشَاءُ
And He forgives what is less than that for whomever He wills.
Mā dūna dhālik includes sins below the threshold of unbelief, including non-kufr major and minor sins. Li-man yashāʾ places forgiveness under divine will rather than promising unconditional acquittal to every offender.
The verse does not make wrongdoing harmless, nor does it promise that every major sinner is necessarily pardoned. It establishes the possibility of pardon, not the obligation to pardon.