An insect should keep a light source at a fixed visual location for maintaining its heading.

The sensitive night-adapted eyes of insects are blinded by artificial lights, causing them to fly erratically or crash, and trapping them near light sources.

In contrast, diffused artificial light in the same plane as the night sky should restore appropriate dorsal-light-response, allowing insects to fly normally.

https://www.biorxiv.org/content/10.1101/2023.04.11.536486v1.full