Thanks for your feedback and details.
I tried to apply patch for forceencryption without mounting vendor and it worked fine. No more error. However, after that, Android will not boot as I mentioned before.
I formatted /data after patch and could not boot into Android, only into TWRP.
After that...