Unhandled internal error resulting in gamma calibration missing after rebooting computer

Hi there.
It seems that something went wrong when I finished entering the luminance values during gamma calibration. After I clicked the ‘confirm’ button an error appeared:

wx._core.wxAssertionError: C++ assertion “GetEventHandler() == this” failed at …..\src\common\wincmn.cpp(470) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

The above exception was the direct cause of the following exception:

SystemError: <class ‘wx._core.IdleEvent’> returned a result with an error set

Also every time after rebooting the computer, the previously saved calibration file is lost. I’m not sure if it has something to do with the error message above.
I tried the same thing in both ver. 2022.2.4 and 2021.2.3 with the same error message.
Can anyone help? Thank you!