That's most likely why. You cannot dirty flash the factory image coming from a previous version of Android. If you had updated using the OTA, you would be fine.
Please refer to my guide here.
What I would do in your situation, since you've already wiped, is use the Android Flash Tool, force flash all partitions, but make sure you disable verity and verification. Then, flash your patched boot image and you should be good to go.