If you filed the I-130 under the assumption you’d be doing AOS and you decide to change to Consular Processing, you’ll have to file I-824 to change.
it costs just under $600 but can take anywhere from 2 month to 20 months depending on the Service Centre you’re allocated.
I wouldn’t recommend it unless you have no other choice.