Track down the light that only shows up sometimes
Find the moment and the route before spending money on another blackout curtain.

Watch from bed first
Turn your own lights down and give your eyes a moment to adjust. Notice where the room brightens when the light appears. A beam across the floor suggests the doorway. A moving glow on the ceiling might lead you to the window or a mirror. Record when it happens for a night or two, or ask someone to switch the likely light sources on separately.
Test the route one change at a time
Look for a recurring event such as somebody coming home, a bathroom trip, or a porch light switching on. Check whether changing the position of a lamp, moving a reflective object, or adjusting a curtain changes what you see from the pillow. Avoid blocking an exit, airflow, or the lighting someone needs to move safely at night.
Keep the shared problem in view
A light that helps one person find the bathroom could be the same light bothering somebody else. Try a lower-positioned lamp or a smaller light pointed at the walking route, if the household can still see enough. If you can’t change the source, consider a comfortable eye mask.