Error when trying to re-install FP4 Stock Os

Follow the steps to “Unlock your bootloader”. If you did so, you probably missed step 7.

Please be careful and do not lock your bootloader afterwards without double-checking get_unlock_ability!
https://forum.fairphone.com/t/device-not-booting-after-flashing-factory-image-and-locking-bootloader/