The fellows who are saying that washing engine bay is OK and doesn't bring any harm, etc. GOD Forbid if water gets ingressed in electrical systems, wiring, fuses and fuse boxes, etc. It may cause Havoc and bring extreme worries for the owner.
Secondly, good experts never suggest to wash engine bay.
Detailing is something else, and detailing experts take utmost care and extreme cautions if they have to wash engine bay with water.
@sasifiqbal703 W.S. Brother I would strongly recommend to avoid washing engine bay, and just clean it with damp cloth and air blower. It should suffice. Otherwise, try washing engine bay practice at your own risk.
I hope, it helps. Thank you.