THC/CBDs cause vasodilation, they make your veins temporarily swell up and engorge with more blood- this explains why your eyes become so red when stoned. Sometimes this can temporarily interfere with your sight, especially if the change in light is sudden and drastic. Try introducing yourself to the light/darkness as gradual as possible, and it should avoid that weird blindness