Hi, no ROM comes preencrypted (would not be secure if the encryption would be having the same encryption key for all devices would it?)
In this case I would revert to fully clean miui global dev ROM, try to encrypt. If it works, decrypt, unlock (official way), flash TWRP and miui.eu and after...