If you need a clean install from the scratch,
Backup your things,
Flash Back to the latest xiaomi stock firmware, then, flash TWRP, Wipe /system /internal storage /dalvic-cache and /cache, Format /data, reboot to recovery and install /e/OS, wipe /dalvic-cache and /cache