Recently i was checking into Oreo latest build for M8. After Wiping everything i got an error in flashing zip file. Then i rebooted the device and i have got like this:
Although you don't specifically say so, I assume you are trying to flash a custom ROM. If so, you need to tell us which one.
What version TWRP are you using?
What error did you get flashing the ROM?
Also, I don't understand why so many folks do not make a TWRP backup of their stock/current ROM
before trying to flash a custom ROM. It is just basic common sense to make a backup, before messing with the ROM. For that matter, it also surprises me that folks will try to replace the ROM, and have absolutely no backup plan, or knowledge of how to return to stock if something goes wrong (as it obviously can, and has) including already having the RUU, etc.
Best practice: I never even start to root a device or flash a custom ROM (unlock bootloader, etc.) without first doing the research tyo fully understand how to return to stock, having the correct files (RUU, etc.) downloaded and ready to go, etc.
Another thing, if you wiped "system" before flashing a ROM, this is unnecessary. In a case like yours, not a good idea. to Flash a ROM, all you need to wipe is data, cache and Dalvik (it says that right on the TWRP wipe screen, that the default wipe is all you need most of the time). My suggestion would be to stay away from the "Advanced" wipe options unless someone knowledgeable tells you to specifically, and you fully understand that the options are, and the consequences of wiping them will be.
If your case, if you had not wiped system, and failed to flash the ROM, you would still have a working OS (stock ROM). If the custom ROM had flashed successfully, the ROM script would automatically wipe system before installing the new ROM. So doing it manually is absolutely not necessary, and in your case left you in a bad situation.
Answer the questions above, and we can probably get the ROM flashed properly.