Updater process ended with ERROR: 1 [TWRP] I was using Pixel experience 10.0 on Redmi 5A (Riva) and I decided to clean install Pixel experience 11.0 today. But I'm getting the following error on TWRP.
Installing zip file '/sdcard/Pixel Experience Riva 11.0.zip'
Checking for Digest file...
assert failed: riva.verify_trustzone(&quot;TZ.BF.4.0.5-157266&quot;) == &quot;1&quot;
Updater process ended with ERROR: 1
Error installing zip file '/sdcard/Pixel Experience Riva 11.0.zip'
Updating partition details...
...done

Note that:

I formatted the device with TWRP and wiped System, Dalvik, Data, Cache partitions.
I was using Pixel Experience before and my Bootloader is unlocked.
Previous version of the ROM (Pixel experience 10.0) is installing successfully.
My TWRP version is 3.4.0-0, and latest version of TWRP (3.5.0_9-0) doesn't support on the device.
I fixed this by installing this zip. Then I installed the ROM.
Official guide link
Thanks @alecxs