It’s all well documented in this thread.
https://forums.flightsimulator.com/t/weird-graphical-artifacts-around-cockpit-at-night-on-amd-rx-9000-series-gpus