Sounds like a failing light sensor on the dash. The black button looking thing right of the center display about the size of a quarter. Have seen dash cleaners get in there and ruin the chip. Part Number: 84088FJ001
https://parts.subaru.com/p/subaru_20...4088FJ001.html
But I've also seen LED headlight and marker bulbs cause crazy things with the Body Control Module, You may want to try swapping back any LED's to normal bulbs and see if the problem continues.