Hi
Exact same problem here: every morning after waking up my PC, I find that the IDE went "offline" in the status bar.
You can edit the source, but all file commands fail including save ("Could not save the sketch. Please copy your unsaved work into your favorite text editor, and restart the IDE.")
You can't quit, either by file menu or the top right cross, you need to kill it in the task manager.
Seems independant of the presence of an arduino board plugged in.
Forcing sleep (even deep sleep) via start menu and waking up after a few seconds won't trigger the problem.
IDE version 2.2.1, windows 10 22H2, Dell Precision 3460