You can either 1. upgrade / amend the pending I-130 first. or better 2. withdraw that old I-130 and file I-130(in new category) and I-485.
If your old I-130 is approved. You can directly file I-485 with I-130 aproved notice AND explanation plus spouse's naturalization certificate.