I have the same problem since I upgraded my MacBook Pro 2019 from Ventura to Sonoma (company policy...). On my Laptop's retina screen the colours are mostly wrong and the the screen flickers. An external screen is mostly ok.
If the retina screen shows wrong colours, moving the lid of my MacBook changes the colours and flickers the screen even more. This did not happen before the Sonoma upgrade, so I don't think it is necessarily a hardware failure. Does anybody else have the same symptoms?
Deleting the duplicate profiles helps a short time, but the duplicates always get re-created -> goes wrong again.