This is caused by a defective monitor profile.
Try setting the monitor profile to sRGB (use Adobe RGB if you have a wide gamut monitor).
If this fixes the issue, it is recommended that you calibrate the monitor with a hardware calibrator, which will also create and install a custom monitor profile that contains an accurate description of your monitor's response.
Close all color managed applications. (Lightroom, LR Classic, Photoshop)
Press the Windows key +R, type colorcpl in the box and press Enter.
Add the sRGB profile, then set it as default.
Also see this thread: https://community.adobe.com/t5/photoshop-ecosystem-discussions/white-color-is-yellowish-in-photoshop...