This started happening to me a couple of days ago, after 90-some hours of play. Seems related to switching to inventory, but also using scanning. Can't get either the effect or solution to work consistently. Sometimes the red lines from scanning stay on screen. Sometimes not. Sometimes looking at the ground or getting on and off my motorcycle helps, sometimes not. The only solution that seems to work *most* of the time is going into a menu (inventory, crafting, etc.) moving to a few different sections then exiting. But it's happening a lot so this is not a great workaround. It doesn't stay fixed.
I'm running on a GTX 1080Ti (latest drivers), have and 1440p HDR monitor with V-Sync and running at 120 refresh rate with frames capped at 120. I thought it might be video card related or graphic setting related. I could not find any graphic setting that seemed to make any difference.