I was able to fix this issue on Debian Linux by flashing
TWRP
to recovery using
rkflashkit then using it to install
this zip.
The important thing was to wipe both caches as well as the data system partitions between tries.
I can write a more thourough explanation if anyone has the same problem.