This requires an HDR display to repro.
Steps:
1. Download [HDR calibration sample](https://github.com/Unity-Technologies/HDR-Calibration-Sample/tree/pr-22lts)
2. Open the project with 22LTS (2022.3.5f1)
3. Open and edit UI_HDRToggle.cs, in TurnOnHDR() and TurnOFFHDR() remove
#if UNITY_EDITOR
UnityEditor.PlayerSettings.useHDRDisplay = true / false;
UI_HDRHelper.editorHDRJustBeingTurnedOff = false / true;
#endif
4. Save script and go back to the editor, hit play
5. On GameView, toggle the HDR checkbox, you will notice that when you toggle it off, HDR is off for 1 frame and automatically turn itself back on.
Reproducible:
2022.3.5f1.0.15175
Note:
Similar issue in HDRP is reported here: [Internal link]
bugfix: [Internal link]