Closing the eyes is always disliked even when it clearly helps prevent a serious distraction and improves Khushu.
Disliked Acts in Prayer, Part 1: Movement, Clothing, Recitation, and Posture
- It is a Sunnah act.
- It is mildly disliked (Makruh Tanzihan).
- It immediately invalidates the prostration.
- It is only disliked for women.