After reinstalling Windows from scratch on the same hardware, and setting up the conditions to reproduce the issue, the erratic behavior cannot be reproduced. It was therefore most likely an OS issue with Windows 11 on that specific computer.
After reinstalling Windows from scratch on the same hardware, and setting up the conditions to reproduce the issue, the erratic behavior cannot be reproduced. It was therefore most likely an OS issue with Windows 11 on that specific computer.