So, I have a Moto G5 and recently installed AOSP Extended. But after I restored my data backup, everything just bugged itself and I wiped data. After configuring everything again and rebooting, it said "decryption unsuccessful, password correct but data is corrupt." Now I even get asked for my pattern on TWRP. Already tried fully restoring the backup, wiping everything, re-installing the ROM, but nothing worked so far. Pattern always stays the same though. It's a Pie ROM.