I had a similar issue on my 2016 328i out of nowhere, just multiple misfires out of nowhere…got new spark plugs+coil packs…it ended up being my injectors had them replaced and coded…then I also replaced the purge canister valve but idk If that affected it… also I got new spark plugs after
Well, it depends on the part cost check [FCP Euro], but I paid $150 to replace the injectors+coding, I believe I paid more for the parts than the labor… also I had put new spark plugs b4 replacing injectors they were fouled do to the faulty injectors.
So if it happens to be the injectors and you still get some misfires after replacing them, you might want to get new spark plugs.