[ASUS ZenFone 8] bnsmb:
If nothing else works anymore I recommend to install a raw Android image from ASUS and then update to the official ASUS Android version

ASUS removed all raw images from their website; but some images are available else where, see this thread:

https://xdaforums.com/t/zenfone-8-firmware-ota-collection.4620171/

For example this one: 31.0803.0403.54 (Beta 2) [RAW/MEGA] should be a raw image; just check the contents of the ZIP file after downloading; the contents of a ZIP file with a raw image looks like this:

[ OmniRom 14 Dev - xtrnaw7@t15g /data/backup/ASUS_ZENFONE8/raw_images/Android13/OPEN-ZS590KS-32.0301.0403.10-BSP-2204-user-20220505 ] $ ls -l
total 5241460
-rw-r--r--. 1 xtrnaw7 xtrnaw7 602112 May 5 2022 abl.elf
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 38517720 May 3 2022 adb
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 38320640 May 3 2022 adb.exe
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 97792 May 3 2022 AdbWinApi.dll
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 62976 May 3 2022 AdbWinUsbApi.dll
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 33554432 May 3 2022 ADF.img
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 8536296 May 3 2022 asdf_384M.img
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 10703200 May 3 2022 ASUS-xrom.img
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 38629376 May 3 2022 boot-debug-gki.img
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 55615488 May 3 2022 boot-debug.img
-rw-r--r--. 1 xtrnaw7 xtrnaw7 100663296 May 5 2022 boot-gki.img
-rw-r--r--. 1 xtrnaw7 xtrnaw7 100663296 May 5 2022 boot.img
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 1054 May 5 2022 crc32_checksum.txt
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 1007 May 5 2022 crc32_img_size.txt
-rw-r--r--. 1 xtrnaw7 xtrnaw7 8388608 May 5 2022 dtbo.img
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 14252200 May 3 2022 fastboot
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 13016576 May 3 2022 fastboot.exe
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 1705200 May 3 2022 fastboot_for_mac
drwxrwxr-x. 2 xtrnaw7 xtrnaw7 4096 Jul 22 2023 firmware
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 13800 May 3 2022 flashall_AFT.cmd
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 45056 May 3 2022 gpt_both0.bin
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 45056 May 3 2022 gpt_both1.bin
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 45056 May 3 2022 gpt_both2.bin
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 45056 May 3 2022 gpt_both3.bin
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 45056 May 3 2022 gpt_both4.bin
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 45056 May 3 2022 gpt_both5.bin
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 45056 May 3 2022 gpt_both6.bin
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 135680 Dec 10 2020 grep.exe
drwxrwxr-x. 2 xtrnaw7 xtrnaw7 4096 Jul 22 2023 lib64
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 711720 May 3 2022 make_f2fs
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 413696 May 3 2022 make_f2fs.exe
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 4234408 May 3 2022 mke2fs
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 4313600 May 3 2022 mke2fs.exe
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 313 May 3 2022 multiple_update_image.bat
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 356 May 3 2022 multiple_update_image.sh
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 33554432 May 3 2022 persist.img
-rw-r--r--. 1 xtrnaw7 xtrnaw7 4752870836 May 5 2022 super.img
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 14168 May 3 2022 update_image.bat
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 10484 May 3 2022 update_image_for_mac.sh
-rwxrwxr-x. 1 xtrnaw7 xtrnaw7 11245 May 3 2022 update_image.sh
-rw-r--r--. 1 xtrnaw7 xtrnaw7 8192 May 5 2022 vbmeta.img
-rw-r--r--. 1 xtrnaw7 xtrnaw7 4096 May 5 2022 vbmeta_system.img
-rw-rw-r--. 1 xtrnaw7 xtrnaw7 6586368 May 3 2022 vendor_boot-debug.img
-rw-r--r--. 1 xtrnaw7 xtrnaw7 100663296 May 5 2022 vendor_boot.img
[ OmniRom 14 Dev - xtrnaw7@t15g /data/backup/ASUS_ZENFONE8/raw_images/Android13/OPEN-ZS590KS-32.0301.0403.10-BSP-2204-user-20220505 ] $

You will have to trust the uploader of the image files, but the risk should be minimal as you will be installing the official ASUS Android later.

The instructions for installing a raw image are in this thread:

https://xdaforums.com/t/full-recover-to-stock-if-things-went-really-bad.4337467/

(the links in that thread do not work anymore because ASUS removed all raw images from their website; but the instructions how to install a raw image are still valid)

And for the records:

"raw images" are "offical" images from ASUS and therefor can also be used on a phone with locked boot loader

regards

Bernd