Both are incorrect or unclear as written. " If you actually wanted to talk two times, you could say: When you try to sleep in a brightly lit room and you close your eyes, it is still not pitch black. But I think what you want to say is When you try to sleep in a brightly lit room, even if you close your eyes, it is still not pitch black.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.